Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue using Arc Map 10.3.1 #60

Closed
jjconnolly85 opened this issue Jan 4, 2018 · 11 comments
Closed

Issue using Arc Map 10.3.1 #60

jjconnolly85 opened this issue Jan 4, 2018 · 11 comments

Comments

@jjconnolly85
Copy link

Hi everyone
Can you please assist? I have been following the tutorial to get the bridge installed and this has worked however I am not sure how you point ArcMap to the tool?

All the demos use ArcPro. Is this bridge only usable with Pro or can you use it with ArcMap too?

Any help would be greatly welcomed. So excited to be potentially using this soon.

Thanks to the developers

Regards
James

@scw
Copy link
Member

scw commented Jan 4, 2018

Hello @jjconnolly85,

Yes, the bridge works fine within ArcMap. We created the demos with ArcGIS Pro because it is our newer product, but it works just the same within 10.x – script tools can be R code, which will be executed like any other Geoprocessing tools.

For example, see the sample tools which contain a few tools which perform real analysis operations. Those all work in both environments and are documented for both Pro and ArcMap.

If you have any specific questions or issues, feel free to follow up here.

Cheers, Shaun

@jjconnolly85
Copy link
Author

Hi Shaun
Thanks very much ch for the help. Really appreciate it.

The issue I’m having relates to pointing ArcMap to the R directory.

The instructions state that this should take place in ArcPro as per the below

“Click Options. In the Options window, in the Application list, click geoprocessing In the R-ArcGIS Support section, select your desired R home directory.”

I can’t get to this stage in ArcMap.

Apologies if this seems like a very basic issue.

Kind regards

James

@scw
Copy link
Member

scw commented Jan 5, 2018

@jjconnolly85 Hopefully @marpobuda's answer over email gets you started in the right direction. We'll be releasing an updated website in the coming months which should clarify the installation process depending on the environment you're in.

@gdg100
Copy link

gdg100 commented Feb 11, 2018

I have problems with arcmap 10.3.1 because it can not load the R libraries (ver 3.4.3) that I installed with RStudio (ver 1.1.419) and arcgisbinding (ver 1.0.0.128). The toolbox always stops with the following examples, and not only, which are implemented in the "r-bridge-master" tool, ie with the following R scripts: logreg, qqplot, sp_geometry etc. I believe that ARCMAP is not able to connect to the R library

The typical error message is as follows (R script sp_geometry):

_Executing: logreg2 ca_ozone_pts X
Running script logreg2...
Installing package into 'C:/Users/giuseppe/Documents/R/win-library/3.4'
(as 'lib' is unspecified)
trying URL 'http://cran.cnr.Berkeley.edu/bin/windows/contrib/3.4/sp_1.2-7.zip'
Content type 'application/zip' length 1538824 bytes (1.5 MB)
downloaded 1.5 MB
package 'sp' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\giuseppe\AppData\Local\Temp\RtmpErPvgZ\downloaded_packages
Error in value[[3L]] : package or namespace load failed for 'sp' in inDL(x, as.logical(local), as.logical(now), ...): unable to load shared object 'C:/Program Files/R/R-3.4.3/library/stats/libs/i386/stats.dll':
LoadLibrary failure:
Impossibile trovare il modulo specificato.
Failed to execute (logreg2).

@dpavlushko
Copy link

To solve "stats.dll" loading issue on R 3.4.3 you need to add C:/Program Files/R/R-3.4.3/bin/i386 to the PATH environment and restart ArcMap. (For 64 bit ArcGISPro add ..../bin/x64)
Second solution is to install Beta version of the 'arcgisbinding' package https://github.com/R-ArcGIS/r-bridge/releases/tag/v1.0.1.229-beta

@gdg100
Copy link

gdg100 commented Feb 12, 2018

I apologize for my insistence but how can I add C:/Program Files/R/R-3.4.3/bin/i386 to the PATH environment?

@gdg100
Copy link

gdg100 commented Feb 12, 2018

in any case the PATH environment of ArcMap?

@dpavlushko
Copy link

Use Windows settings like this:
image

@gdg100
Copy link

gdg100 commented Feb 13, 2018 via email

@cahyareza
Copy link

I have problems with arcmap 10.4.1 because it can not load the R libraries (ver 3.5.1) that I installed with RStudio (ver 1.1.453) and arcgisbinding (ver 1.0.1.232).

when i run: library(arcgisbinding)
The typical error message is as follows:

Error: package or namespace load failed for ‘arcgisbinding’:
.onLoad failed in loadNamespace() for 'arcgisbinding', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/danu/Documents/R/win-library/3.5/arcgisbinding/libs/i386/rarcproxy.dll':
LoadLibrary failure: The specified procedure could not be found.

@scdub
Copy link
Contributor

scdub commented Jan 29, 2021

Closing this as it references older versions of R and the installer that have since been resolved.

@scdub scdub closed this as completed Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants