AnomalyDetection icon indicating copy to clipboard operation
AnomalyDetection copied to clipboard

When plot = FALSE, don't call plot.new

Open jcpetkovich opened this issue 9 years ago • 9 comments

plot.new() is generally unfriendly to call unless it will actually be used for drawing, and certainly not if we ask for no plots to be created.

plot.new triggers the completion of the previous plotting action, and as such can't be used in combination with any multithreading or forked R processes.

plot.new also does not return a "plot" object, it always returns NULL, so although it appears to be used here as a way of returning a "null plot", all that really happens is that AnomalyDetection* returns list(..., plot = NULL).

This commit resolves #60

jcpetkovich avatar Oct 06 '15 20:10 jcpetkovich

Thanks @jcpetkovich !

jhochenbaum avatar Oct 07 '15 06:10 jhochenbaum

@caniszczyk The PR looks good. Please merge.

akejariwal avatar Oct 07 '15 21:10 akejariwal

Anything holding this back from a merge?

jcpetkovich avatar Nov 18 '15 17:11 jcpetkovich

Ping! Just hit into this issue myself.

wlopata avatar Feb 10 '16 20:02 wlopata

Also just hit the issue. Does anyone else have write access to perform the merge?

trh178 avatar Mar 04 '16 22:03 trh178

+1 to this change. I was about to do the same.

gonzalodiaz avatar May 16 '16 19:05 gonzalodiaz

/cc @caniszczyk

dmpe avatar May 21 '16 15:05 dmpe

+1 for this change - please let me know if I can help in any way to get this merged into the codebase. I'm hitting this issue when trying to run AnomalyDetectionTs in a subprocess.

Winterflower avatar Jul 04 '17 14:07 Winterflower

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Jul 18 '19 15:07 CLAassistant