R-ArcGIS bridge setup issues

881
15
10-06-2019 05:26 PM
Highlighted
New Contributor II

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)
Reply
0 Kudos
15 Replies
Highlighted
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

Reply
0 Kudos
Highlighted
New Contributor II

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

Reply
0 Kudos
Highlighted
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)

Reply
0 Kudos
Highlighted
New Contributor II

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'

Reply
0 Kudos
Highlighted
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.

Reply
0 Kudos
Highlighted
New Contributor II

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"
>

Reply
0 Kudos
Highlighted
Regular Contributor

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

Reply
0 Kudos
Highlighted
New Contributor II

3.6.1

Reply
0 Kudos
Highlighted
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

Reply
0 Kudos