Configure which version of Python to use

use_python(python, required = FALSE)

use_virtualenv(virtualenv, required = FALSE)

use_condaenv(condaenv, conda = "auto", required = FALSE)

Arguments

python

Path to Python binary

required

Is this version of Python required? If TRUE then an error occurs if it's not located. Otherwise, the version is taken as a hint only and scanning for other versions will still proceed.

virtualenv

Directory of Python virtualenv

condaenv

Name of Conda environment

conda

Conda executable. Default is "auto", which checks the PATH as well as other standard locations for Anaconda installations.