R-ArcGIS / r-bridge

Bridge library to connect ArcGIS and R, including arcgisbinding R library.
Apache License 2.0
118 stars 26 forks source link

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

Open PharaohLotus opened 2 months ago

PharaohLotus commented 2 months ago

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.

JosiahParry commented 2 months ago

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.

PharaohLotus commented 2 months ago

File exist output is True. I tried the code you suggested, and the fatal error still terminates Rstudio.

Sent via the Samsung Galaxy A52 5G, an AT&T 5G smartphone Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Josiah Parry @.> Sent: Thursday, August 1, 2024 11:24:33 AM To: R-ArcGIS/r-bridge @.> Cc: Beazer, Danielle M @.>; Author @.> Subject: Re: [R-ArcGIS/r-bridge] Error in .call_proxy("dataset.open", .Object, path) : cannot open dataset (Issue #91)

You don't often get email from @.*** Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification

[This email originated from outside of OSU. Use caution with links and attachments.]

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.

— Reply to this email directly, view it on GitHubhttps://github.com/R-ArcGIS/r-bridge/issues/91#issuecomment-2263694510, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BGZATBR7ZO472M324FADHF3ZPJ4ODAVCNFSM6AAAAABL26VYNSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRTGY4TINJRGA. You are receiving this because you authored the thread.Message ID: @.***>