Retrieve the Python executable path for PopulationSim from settings or environment.
Use to configure Python integration in R pipelines.
Usage
get_python_path(python_env = NULL, settings)
Arguments
- python_env
character(1). Name or path of Python environment. Default: from settings or environment.
- settings
list. Must include python_env or PYTHON_VENV_PATH
Value
character(1). Absolute path to Python executable.
Details
Checks settings, environment variable, and defaults for Python path.
Makes path absolute and removes test subdirectories.
Errors if path does not exist; returns character string.
Assumes valid settings; errors if missing.
Examples
## Not run:
get_python_path(settings = settings)
#> Error: object 'settings' not found
## End(Not run)