Wrapper around reticulate::py_install()
to install the Rosetta Pedotransfer Function Python package
install_rosetta(
envname = NULL,
method = "auto",
conda = "auto",
pip = TRUE,
user = FALSE,
upgrade = TRUE,
system = FALSE,
arcpy_path = getOption("rosettaPTF.arcpy_path")
)
The name, or full path, of the environment in which Python packages are to be installed. When NULL
(default), the active environment (RETICULATE_PYTHON_ENV
variable) will be used; if that is unset, then the "r-reticulate"
environment will be used.
"auto"
, "virtualenv"
, or "conda"
; Default: "auto"
Default: "auto"
logical. Use pip
for package installation? Default: TRUE
. This is only relevant when Conda environments are used, as otherwise packages will be installed from the Conda repositories.
logical. Default: FALSE
. Pass --user
flag. This should only be done if other installation methods fail and it is impossible to use a virtual environment.
logical. Install latest versions of Python packages by passing --upgrade
flag? Default: TRUE
.
logical. Default: FALSE
. If TRUE
, try installing to system (user) site library with system()
and set reticulate to use system Python.
Argument passed to find_python()
. Path to ArcGIS Pro Python installation e.g. “. Set as NULL
(default) to prevent use of ArcGIS Pro instance.
From reticulate::py_install()
: On Linux and OS X the "virtualenv" method will be used by default ("conda" will be used if virtualenv isn't available). On Windows, the "conda" method is always used.