install error with R 4.0

584
2
Jump to solution
06-04-2020 02:25 PM
New Contributor

I'm just getting started with an R-ArcGIS Bridge tutorial.

I'm running ArcGIS Pro 2.5.1 on Windows running as Parallels virtual machine on MacOS.

I first installed the bridge from Pro (Project-Options-Geoprocessing) with R 3.6 installed on my system.  I then upgraded R to 4.0.  

When I try to run in R just two lines:

     library(arcgisbinding)

     arc.check_product()

I get the following error in the R console:

"Error: package or namespace load failed for 'arcgisbinding':

  package 'arcgisbinding' was installed before R 4.0.0: Please reinstall it."

I then run "remove.packages("arcgisbinding") from the R console.  This appears to successfully remove the package because in R if I try to load it (with library(arcgisbinding)) I get "there is no package called 'arcgisbinding'". In Pro on the Project tab Options-Geoprocessing page, the pulldown menu has changed back to "Please install the ArcGIS R integration package".

I then re-install from Pro with R 4.0 home directory selected and using the "install package from the internet" from the pull down menu. I am asked for confirmation (New arcgisbinding version 1.0.1.239 is available. Would you like to install it?) and the output from the install is "package 'arcgisbinding' successfully unpacked and MD5 sums checked. Completed".

In Pro, the pull down on the Options-Geoprocessing page is changed to "Check package for updates" so I assume ArcGIS Pro had a successful install.

In R, the "library(arcgisbinding)" statement gives me the same error at top (package installed before R4.0: Please reinstall it".

I haven't seen anything mentioning incompatibility with R 4.0.  I see two possible options:  go back to R 3.6 and try that, or uninstall R and ArcGIS Pro and start over.

Anyone else have this experience, or any suggestions?

thank you

pd

Reply
0 Kudos
1 Solution

Accepted Solutions
Regular Contributor

Our historical way of building and upgrading the package no longer works, since we can only support one version of the product at a time with a single download from GitHub. We're in the process of switching to having an R channel which can be accessed to install the package, and will allow us to maintain multiple versions for the different versions of R (and 32-bit versus 64-bit). This will be available automatically in Pro 2.6, for now with Pro 2.5 you can install it by opening R or RStudio, and running:

install.packages("arcgisbinding", repos="http://r-arcgis.github.io/r-bridge", type="win.binary")

That should install the latest version of the bridge and is compatible with R 4.0.

Cheers, Shaun

View solution in original post

2 Replies
Regular Contributor

Our historical way of building and upgrading the package no longer works, since we can only support one version of the product at a time with a single download from GitHub. We're in the process of switching to having an R channel which can be accessed to install the package, and will allow us to maintain multiple versions for the different versions of R (and 32-bit versus 64-bit). This will be available automatically in Pro 2.6, for now with Pro 2.5 you can install it by opening R or RStudio, and running:

install.packages("arcgisbinding", repos="http://r-arcgis.github.io/r-bridge", type="win.binary")

That should install the latest version of the bridge and is compatible with R 4.0.

Cheers, Shaun

View solution in original post

New Contributor

Thank you Shaun.  That did the trick.  Pete