I am performing spatial data analysis within R Studio using datasets stored in our ArcGIS Enterprise. To access these datasets, I am using the arcgisutils and arcgislayers packages, and I've set up an authenticator application in our enterprise portal which allows me to connect to our portal in R Studio using user authentication.
I have been successfully accessing data stored within our enterprise portal using the following steps:
- Obtain the service url for the desired sublayer in a feature layer item using the item's itemID within the arcgislayers::arc_open() function, and passing the result to the arcgislayers::get_layer() function