R-ArcGIS / r-bridge-install

Install the R ArcGIS Tools
Apache License 2.0
188 stars 59 forks source link

'Install R bindings' problem with R 3.4.3 and Pro 2.1.3 #69

Closed jbeaulie closed 3 years ago

jbeaulie commented 6 years ago

When running the 'Install R bindings' tool from ArcGIS Pro, I get the following error message:

image

orhuna commented 6 years ago

Hello @jbeaulie . Can you please try these steps?

  1. Open R Studio (or any IDE you use)
  2. Run trace(utils:::unpackPkgZip, edit=TRUE)
  3. Find Sys.sleep and set the sleep time to 5 If you are on R 3.5 and newer Sys.sleep will not be there anymore. So another solution to this issue is updating to latest version of R (if you do so, you do not need steps 1,2,3).
  4. Launch Pro
  5. Click Project Ribbon
  6. Click Options
  7. Click on Geoprocessing tab
  8. Under R-ArcGIS Support Click on this box image
  9. Select Download Latest Version

Make sure the Detected R home directory is pointing to the version of R you used in step 2 (that is in case you have multiple versions of R installed).

scw commented 6 years ago

@jbeaulie Hello Jake, were you able to install the bindings package either on your own or following Orhun's instructions?

ratnanil commented 5 years ago

I had a similar issue using R version 3.5.1 (2018-07-02) on x86_64-w64-mingw32 with ArcGIS Pro 2.2.0. I was able to install the bridge with @orhuna's instuctions. Since Sys.sleep was not available I skipped steps 1 - 3, downloaded the latest version and installed via the option "install from file".

Here's the (german) error message that I recieved before finding this workaround.

Warnung in install.packages("C:/Users/rata/AppData/Local/Temp/ArcGISPro7784/tmpklj6a_67/arcgisbinding_1.0.1.232.zip",
 'lib = "C:/Program Files/R/R-3.5.1/library" ist nicht schreibbar
 Fehler in install.packages("C:/Users/rata/AppData/Local/Temp/ArcGISPro7784/tmpklj6a_67/arcgisbinding_1.0.1.232.zip",  :
 kann keine Pakete installieren
 Ausführung angehalten
 R command returned non-zero exit status.
 Fallback installation method failed.
ratnanil commented 5 years ago

Here's a nice tutorial on these steps https://youtu.be/lEKx_pJIKj0?t=773