R arcgisbinding

450
1
12-23-2022 01:56 AM
DomenicoGuadalupi
New Contributor

Hi all,

I am trying to develop my first atbx tool using an R script.

I can easily manage something like this :

tool_exec <- function(in_params, out_params) {
  in_data <- in_params[[1]]
  plot.new()
  text(0.5,0.5,in_data)
  return(out_params)
}

But if I insert a library(dplyr) command it crashes with this error (it's the same for any package):

Error in value[[3L]] : package or namespace load failed for 'dplyr' in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Program Files/R/R-4.2.1/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.

My setup is: ArcGIS Pro 3.0.0 and R-4.2.1

Could anyone explain me where I am worng?

 

1 Reply
AdamR
by
New Contributor II

Looks like your R deployment is missing stats.dll (or it's locked by someone else). This usually happens when rtools is incorrectly installed.

Try Sys.which("make"and see what location pops out.

0 Kudos