- R-3.1.3 for Windows (http://cran.r-project.org/bin/windows/base/old/3.1.3/)
- ArcGIS Pro 1.1 or ArcGIS 10.3.1
####Installation #####Update command: ####Basic GP Tool script
tool_exec <- function (in_params, out_params)
{
value0 <- in_params[[1]]
print(value0)
# ...
return (out_params)
}
tool_exec(in_params, out_params)
main function
in_params
list of all input parameters. You can get parameter value by indexin_params[[1]]
or by parameter namein_params$param1
output_params
list of all output and derived parameters.
####Using arcgisbinding
in standalone R script
> library(arcgisbinding)
> arc.check_product()
####Build from source
- Create new folder
<ArcGIS>\R-bridge
- Set as current directory and clone repository
git clone https://github.com/R-ArcGIS/r-bridge.git ./src
- Open
R-bridge.sln
(Visual Studio 2012) and build solution
######Build dependencies:
- ArcObjects SDK for C++ 10.3.1 (requirements)
- Rtools 3.1 or 3.2
######Documentation dependencies:
- roxygen2, install from R:
install.packages('roxygen2')
- MiKTeX 2.9, to build package PDF
###Repository layout
- .\package
arcgisbinding
(native R package) - collection of classes and functions for script-level bindings between R and bridge dll. - .\rarcproxy
C++, Bridge between ArcGIS 10.3.1 andarcgisbinding
. - .\rarcproxy_pro
C++, Bridge between ArcGIS Pro andarcgisbinding
. - .\libarcobjects
(private) - Static library for rarcproxy_pro. Wrapper classes for ArcObjects API.
##Credits
This package depends on the R Statistical Computing Software:
Copyright (C) 2015 The R Foundation for Statistical Computing R is free software and comes with ABSOLUTELY NO WARRANTY.