
Return the Python executable used by the grayleafspot pipeline
Source:R/python_engine.R
grayleafspot_python_executable.RdThis function is intended for advanced use only. Normal users do not need
to call it — the pipeline resolves its Python environment automatically via
basilisk.
Details
Resolves the Python interpreter in this priority order: the python
argument, the GRAYLEAFSPOTR_PYTHON environment variable, the
grayleafspotr.python option, and finally python3 / python from PATH.
Examples
tryCatch(
grayleafspot_python_executable(),
error = function(e) message("Python not found: ", conditionMessage(e))
)
#> [1] "/home/runner/.cache/R/basilisk/1.24.0/grayleafspotr/0.99.2/grayleafspotr_env_v1/bin/python3"