install_arcpy {arcpy} | R Documentation |
Install ArcGIS Conda Environment
Description
Create a Conda environment with the "arcpy" module.
Usage
install_arcpy(
method = "conda",
conda = "auto",
version = NULL,
envname = "r-arcpy",
extra_packages = NULL,
restart_session = TRUE,
python_version = NULL,
channel = "esri",
forge = TRUE,
...,
new_env = identical(envname, "r-arcpy")
)
Arguments
method |
Installation method. By default, "auto" automatically finds a method that will work in the local environment. Change the default to force a specific installation method. Note that the "virtualenv" method is not available on Windows. |
conda |
The path to a |
version |
Arcpy version to install. Note that the requested arcpy version must match your ArcGIS Pro version. |
envname |
The name, or full path, of the environment in which Python
packages are to be installed. When |
extra_packages |
Additional Python packages to install along with arcpy. |
restart_session |
Restart R session after installing (note this will only occur within RStudio). |
python_version |
Pass a string like "3.9" to request that
conda install a specific Python version. Note that the Python
version must be compatible with the requested arcpy version. If
|
channel |
An optional character vector of conda channels to include.
When specified, the |
forge |
Boolean; include the conda-forge repository? |
... |
other arguments passed to |
new_env |
If |
Details
The Conda environment must be configured to match the ArcGIS Pro version currently installed. If ArcGIS Pro is updated, the Conda environment must be recreated.
Value
(Invisible) TRUE
if the Conda environment was created
successfully.