Has anyone successfully run an R-based script tool on an Enterprise server -- that imports the sf package? Or even the stats package. I’m having this issue when trying to run an R-based script tool as a published geoprocessing service. I’m using ArcGIS 3.2.1, R 4.3.3, and ArcGIS Enterprise 11.2.
- I created a R script that simply queries a feature class of US Counties for features with a user supplied FIPS code and returns the subset feature class (attached). I then created an ArcGIS Pro geoprocessing interface for this tool.
- I created a second version of the script and geoprocessing tool, one which calls the `arc.data2sf()` function (line 60 is uncommented in attached script).