twitter / AnomalyDetection

Anomaly Detection with R
GNU General Public License v3.0
3.55k stars 776 forks source link

Error while running from Rscript #64

Closed prathik closed 3 years ago

prathik commented 8 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.

joaoborges commented 8 years ago

Hi,

I had a similar issue with Rscript, but with another output error ( #76 ).

To fix it, I just included library(methods).

Maybe this could be your case too.