R-ArcGIS bridge setup issues

3160
16
10-06-2019 05:26 PM
HarleySchinagl
New Contributor III

I wanted to learn about R and ArcGIS so I started the R-ArcGIS Bridge web course. I haven't gotten off to a good start. I have only just started the course and installed the bridge. Then I received an error with arc.check_product(). The error is

> arc.check_product()
Error in arc.check_product() :
could not find function "arc.check_product"

The installation process seemed to work so I'm not sure what the issue is. I'm using ArcGIS Pro 2.4.2 and R Studio 1.2.1335

Tags (2)
0 Kudos
16 Replies
ShaunWalbridge
Esri Regular Contributor

Hello Harley,

Before you run that line, you'll need to first run:

library(arcgisbinding)

in order to load the package into R. R is built up of many extensions, but only the ones someone is using are typically loaded, by explicitly running the library command on each extension to use.

Cheers,

Shaun

0 Kudos
HarleySchinagl
New Contributor III

Thanks for the reply Shaun. I should have specified that I did load the library first. 

0 Kudos
ShaunWalbridge
Esri Regular Contributor

OK, thanks for the clarification -- the error you mentioned is the same one you would see if the package wasn't loaded at all. Do you get the "Please call arc.check_product() to define a desktop license" message after loading arcgisbinding? If you run this, can you report what it displays?

ls(package:arcgisbinding)

0 Kudos
HarleySchinagl
New Contributor III

When loading the library only I get the following:

> library(arcgisbinding)
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: Failed to load 'libobjects_pro.dll'

0 Kudos
ShaunWalbridge
Esri Regular Contributor

OK, thanks for the report. Can you confirm that it does work from a vanilla R GUI session? It looks like possibly a bad interaction with R Studio.

0 Kudos
HarleySchinagl
New Contributor III

Same result:

> library(arcgisbinding)
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: Failed to load 'libobjects_pro.dll'
> arc.check_product()
Error in arc.check_product() :
could not find function "arc.check_product"
>

0 Kudos
ShaunWalbridge
Esri Regular Contributor

Thanks for the details. What version of R are you working with?

0 Kudos
HarleySchinagl
New Contributor III

3.6.1

0 Kudos
ShaunWalbridge
Esri Regular Contributor

OK, thanks again. It isn't clear yet what is causing the issue, but we made some compiler upgrades to the latest build of the package that may be the culprit. Until we're able to find out what is causing this issue, could you try installing the previous v232 release of the package?

  Release v1.0.1.232 · R-ArcGIS/r-bridge · GitHub 

Thanks, and sorry for the trouble, Shaun

0 Kudos