Uses 'reticulate' to create a virtual environment with the SSURGO Portal
dependencies. Select the environment name, default "r-ssurgoportal"
,
along with the specific Python and GDAL versions.
Usage
create_ssurgo_venv(
envname = "r-ssurgoportal",
python_version = SSURGOPORTAL_PYTHON_VERSION(),
gdal_version = SSURGOPORTAL_GDAL_VERSION(),
conda = FALSE,
install_python = TRUE,
...
)
ssurgo_portal_python(
envname = getOption("SSURGOPortal.virtualenv_name", default = "r-ssurgoportal"),
conda = FALSE,
...
)
Arguments
- envname
character. Python virtual environment name. Default:
"r-ssurgoportal"
- python_version
character. Semantic version number of 'Python' to install if not available. Default: `"3.10.2"
- gdal_version
character. Semantic version number of 'GDAL' package to install. Default:
""
for no specific version.- conda
logical. Look for Conda environment instead of virtual environment? Default:
FALSE
- install_python
logical. Install Python from official source using
pyenv
? Default:TRUE
. Used for virtual environment installs when the system python does not match requested version, or usable Python is not otherwise detectable.- ...
Additional arguments used only when
conda=TRUE