R-ArcGIS / r-bridge-install

Install the R ArcGIS Tools
Apache License 2.0
188 stars 59 forks source link

problem running a script from the command line #81

Closed ghost closed 3 years ago

ghost commented 5 years ago

I've got a script that I had hooked up to a toolbox tool and it was working for a while. Eventually it stopped working when I used the arc tool but it would still work when I ran the code from RStudio. I wasn't sure exactly what I broke but I found that I could call the R script from the command line as a temporary workaround after adding [args = commandArgs(trailingOnly=TRUE)] to the top of the script instead of putting everything inside the tool_exec function. Unfortunately though, the script is now not even running from the cmd line. It says "Error: Could not bind to a valid ArcGIS Pro installation" even though the arc.check_product() line in my script yields a license checkout to my copy of 10.5.1. It was working fine up until now and I don't believe I have done anything to my arcgisbinding package or ArcGIS installation.

Have ever seen either of these situations?: a) a script runs fine in Rstudio but not from a toolbox even though the inputs are the same? b) the arc.check_product() starts throwing an error all of a sudden, but only when the script is called from outside Rstudio? b) the

scdub commented 3 years ago

It looks like this issue is only partially posted and the user deleted their account -- closing for now.