rpygeo_build_env {RPyGeo} | R Documentation |
Initialize ArcPy site-package in R
Description
Initialises the Python ArcPy site-package in R via the
reticulate
package. Addtionally environment settings and extensions
are configured.
Usage
rpygeo_build_env(path = NULL, overwrite = TRUE, extensions = NULL,
x64 = FALSE, pro = FALSE, arcgisAPI = FALSE, workspace = NULL,
scratch_workspace = NULL)
Arguments
path |
Full path to folder containing Python version which is linked to
the ArcPy site-package. If left empty, the function looks
for |
overwrite |
If |
extensions |
Optional character vector listing ArcGIS extension that should be enabled (does not work while using ArcGIS API for Python) |
x64 |
Logical (default: |
pro |
Logical (default: |
arcgisAPI |
Logical (default: |
workspace |
Path of ArcGIS workspace in which to perform the geoprocessing (does not work while using ArcGIS API for Python). |
scratch_workspace |
Path to ArcGIS scratch workspace in which to store
temporary files (does not work while using ArcGIS API for Python). If
|
Value
Returns ArcPy or ArcGIS modules in R
Author(s)
Fabian Polakowski, Marc Becker
Examples
## Not run:
# Load ArcPy side-package of ArcGIS Pro with 3D and Spatial Analysis extension.
# Set environment setting 'overwrite' to TRUE.
# Note that no path parameter is necessary because Python is located in the
# default location.
arcpy <- rpygeo_build_env(overwrite = TRUE,
extensions = c("3d", "Spatial"),
pro = TRUE)
## End(Not run)
# Load the ArcPy module when your Python version is located in a different
# folder