connect_ArcGIS: Connect ArcGIS Python

Description Usage Arguments Value See Also Examples

View source: R/buildenv.r

Description

Connect to the ArcGIS Python environment.

Usage

1
connect_ArcGIS(python_folder, Pro = FALSE, quietly = TRUE)

Arguments

python_folder

The Python installation folder created by ArcGIS. If missing, the function will attempt to automatically detect an appropriate Python installation.

Pro

Logical: If True, attempt to connect to an ArcGIS Pro Python distribution. Otherwise, attempt to connect to an ArcGIS Desktop Python distribution.

quietly

Logical: Suppress messages and warnings.

Value

No return value.

See Also

arcpy_env

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
# Try to autodetect
connect_ArcGIS()

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

# connect to the 64-bit ArcGIS Desktop 10.2 Python environment
connect_ArcGIS("C:/Python27/ArcGISx6410.2")

# connect to the ArcGIS Pro 1.3 Python environment
connect_ArcGIS("C:/Program Files/ArcGIS/Pro/bin/Python/envs/arcgispro-py3",
  Pro = TRUE)

## End(Not run)

mkoohafkan/arcpyr documentation built on May 23, 2019, 2:01 a.m.