R-ArcGIS/r-bridge

Error in .call_proxy("dataset.open", .Object, path) : cannot open dataset

Opened this issue · 2 comments

Error in .call_proxy("dataset.open", .Object, path) : cannot open dataset

Code is:

library(arcgisbinding)
arc.check_product()
dataset <- arc.open(path = "C:\EsriTRaining\RArcGISBridge\crashes_per_mile.shp")

Does ArcPRo need to be open or closed once the integration is installed?

There is a comment in a similar question about relative file path. What does this mean?

I checked the file path again, and now in stead of the previous error, A window appears and says fatal error RStudio terminated.

This means that your path is incorrect and cannot be found. You have \ in there which is an escape character.
Please try running dataset <- arc.open(path = "C:/EsriTRaining/RArcGISBridge/crashes_per_mile.shp")

Without further information it is tough to assist.

You can also run file.exists("C:/EsriTRaining/RArcGISBridge/crashes_per_mile.shp") to check if the file does indeed exist.