AnsweredAssumed Answered

Bug in arcgisbinding R package --arc.env() not working

Question asked by ftonini_msugis on Sep 23, 2016
Latest reply on Feb 7, 2017 by SWalbridge-esristaff

Everyone, 

I am using ArcGIS 10.3.1 and R >= 3.2.0. I noticed a strange behavior both in the sample R tools provided as well as my own custom R tool scripts when using the arc.env() function from the arcgisbindings R package. This function is supposed to retrieve the environment settings of the ArcGIS tool and pass it to R. However, script execution freezes and never completes when adding arc.env() to the script, e.g. to change the default scratch workspace path. Is this a bug?

For example, add arc.env() to the semiparam regression tool script to check issue above.

# Example:
tool_exec <- function(in_para, out_params)
{
env = arc.env()
wkspath <- env$workspace
...
return(out_params)
}

Any ideas why?

Outcomes