Open joaoborges opened 8 years ago
May or may not be related:
https://github.com/twitter/AnomalyDetection/issues/73 https://github.com/twitter/AnomalyDetection/pull/61
I'm having the same issue using Rscripts. Everything works fine with library(methods) in the script, or alternatively using R CMD BATCH.
These appear to be related: https://github.com/tudo-r/BatchJobs/issues/28 https://github.com/tudo-r/BatchJobs/issues/27
It's because the graphics device is being opened even when "plot=FALSE" is set. Reference the "plot.new()" call at the end of ts_anom_detection.R and vec_anom_detection.R. This appears to be fixed in tag v1.0.1, but it's not in the master.
Try reinstalling with the tag explicitly specified:
devtools::install_github("twitter/AnomalyDetection", ref="v1.0.1")
Hello,
when running AnomalyDetection inside R (gui or interactive terminal) I have no errors, but when running with Rscript I've got the following error:
Thus, to fix this I had to include
library(methods)
in my script.Although it is running ok with this, it is generating a
Rplots.pdf
file after each iteration, which may indicate the cause for the above error.