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")
)

Arguments

envname

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.

method

"auto", "virtualenv", or "conda"; Default: "auto"

conda

Default: "auto"

pip

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.

user

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.

upgrade

logical. Install latest versions of Python packages by passing --upgrade flag? Default: TRUE.

system

logical. Default: FALSE. If TRUE, try installing to system (user) site library with system() and set reticulate to use system Python.

arcpy_path

Argument passed to find_python(). Path to ArcGIS Pro Python installation e.g. ``. Set as NULL (default) to prevent use of ArcGIS Pro instance.

Details

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.