Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 13, 2021. It is now read-only.

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

Open
jcpetkovich wants to merge 1 commit into twitter:master
base: master
Choose a base branch
Loading
from jcpetkovich:dont-call-plot.new-when-plot-is-f

Conversation

@jcpetkovich
Copy link

@jcpetkovich jcpetkovich commented Oct 6, 2015

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

dmpe, isalgueiro, and jbrant reacted with thumbs up emoji
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 twitter#60 
Copy link

Thanks @jcpetkovich !

Copy link
Contributor

@caniszczyk The PR looks good. Please merge.

Copy link
Author

Anything holding this back from a merge?

Copy link

wlopata commented Feb 10, 2016

Ping! Just hit into this issue myself.

Copy link

trh178 commented Mar 4, 2016

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

Copy link

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

Copy link

dmpe commented May 21, 2016

Copy link

+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.

Copy link

CLAassistant commented Jul 18, 2019
edited
Loading

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Using AnomalyDetection in parallel or in any forked environment fails

AltStyle によって変換されたページ (->オリジナル) /