Thin wrapper around reticulate::import("GPopt"), after switching reticulate to the virtual environment at venv_path. Useful if you want to access parts of the Python API that don't (yet) have a dedicated R constructor in this package – e.g. get_GPopt()$config or get_GPopt()$genericcv.

get_GPopt(venv_path = "./venv")

Arguments

venv_path

path to the Python virtual environment created with `uv` (see the package README for setup instructions)

Value

the Python module `GPopt`, usable with `$` the way you would use `.` in Python (e.g. `get_GPopt()$GPOpt(...)`)

Examples

if (FALSE) { # \dontrun{
gp <- get_GPopt(venv_path = "./venv")
gp$GPOpt
} # }