Closed prathik closed 3 years ago
AnomalyDetectionTs works file on the R gui however if I run it as a script I am getting the following error
Error in initFields(scales = scales) : could not find function "initRefFields" Calls: AnomalyDetectionTs ... initialize -> initialize -> -> initFields Execution halted
The same thing in the script worked fine in the GUI.
Hi,
I had a similar issue with Rscript, but with another output error ( #76 ).
To fix it, I just included library(methods).
library(methods)
Maybe this could be your case too.
AnomalyDetectionTs works file on the R gui however if I run it as a script I am getting the following error
Error in initFields(scales = scales) : could not find function "initRefFields" Calls: AnomalyDetectionTs ... initialize -> initialize -> -> initFields
Execution halted
The same thing in the script worked fine in the GUI.