GeoEco.R.RWorkerProcess.Eval
- RWorkerProcess.Eval(expr, timeout=60.0)
Evaluate an R expression and return the result.
The expression can be anything that may be evaluated by the R
evalfunction. Multiple expressions can be separated by semicolons or newlines. The value of the last expression is returned. Please see theRWorkerProcessclass documentation for details on how R data types are translated into Python data types.- Parameters:
expr (
str) – R expression to evaluate. It can be anything that may be evaluated by the Revalfunction. Multiple expressions can be separated by semicolons or newlines. The value of the last expression is returned. Minimum length꞉ 1.timeout (
float, optional) –Maximum amount of time, in seconds, that R is permitted to run while evaluating the expressions before it must return a result. If this time elapses without the R worker process beginning to send its response, an error will be raised.
The default timeout was selected to allow all but the most time consuming expressions to complete. You should increase it for very long running jobs. If you’re unsure how long it will take, you may allow an infinite amount of time by providing
Nonefrom Python or deleting all text from this text box in the ArcGIS user interface.Warning
If you allow an infinite amount of time and your R expression never completes, your program will be blocked forever. Use caution.
Must be greater than 0.0.