use_ArcGIS: Connect to ArcGIS Python

Description Usage Arguments Value Examples

View source: R/connect.r

Description

Connect to the ArcGIS Python environment.

Usage

1
use_ArcGIS(pro = FALSE, python, conda_exe, conda_env)

Arguments

pro

If TRUE, attempt to connect to an ArcGIS Pro Python distribution. Otherwise, attempt to connect to an ArcGIS Desktop Python distribution. Ignored if python is provided.

python

Path to ArcGIS Python binary. If missing, the function will attempt to automatically detect an appropriate Python installation.

conda_exe

For use with ArcGIS Pro only. The path to the ArcGIS Pro Conda executable. If missing, the function will attempt to automatically detect the ArcGIS Pro Conda executable.

conda_env

For use with ArcGIS Pro only. The the ArcGIS Pro Conda environment to use. If missing, the function will attempt to automatically detect an appropriate Conda environment.

python

Path to ArcGIS Python binary. If missing, the function will attempt to automatically detect an appropriate Python installation.

Value

No return value.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# Try to autodetect
use_ArcGIS()

# connect to the 32-bit ArcGIS Desktop 10.2 Python environment
use_ArcGIS("C:/Python27/ArcGIS10.2")


## End(Not run)

mkoohafkan/arcpy documentation built on Dec. 23, 2018, 10:10 p.m.