Skip to contents

The function initializes a connection to either ArcGIS Pro or ArcMap and also loads the arcpy python module into the global environment.

Usage

init_arcpy(python_env_path = NULL, conda_env = NULL)

Arguments

python_env_path

Requires a string to the python executable path for the arcpy environment.

conda_env

Requires a string of the conda environment name containing the arcpy environment.

Value

A global variable called arcpy loaded as a python module and the output of arcgisbinding::arc.check_product() detailing ESRI product information.

Examples

if (FALSE) {
init_arcpy(python_env_path = "C:/ESRI/conda/envs/{conda environment name}/python.exe")
init_arcpy(conda_env_path = "{conda environment name}")
# product: ArcGIS Pro (13.1.0.41833)
# license: Advanced
# version: 1.0.1.300
}