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