8000 Updated for use in packages by ebyerly · Pull Request #3 · renozao/doRNG · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Updated for use in packages #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Updated for use in packages #3

wants to merge 2 commits into from

Conversation

ebyerly
Copy link
@ebyerly ebyerly commented May 6, 2016

I am working on a patch for a genetics algorithm package, luca-scr/GA#3, introducing reproducible seeds to auto-generated nodes. I am planning to use doRNG.

As par 8000 t of debugging that process, I found one line that prevents doRNG from being used within a package. The doRNG() wrapper receives envir as an argument and then provides parent.frame() as its argument to %dopar%. This works when doRNG is being used in an interactive session, but it doesn't play nice in a package's managed namespace. The patch simply passes envir down to %dopar%.

@ebyerly
Copy link
Author
ebyerly commented May 6, 2016

Per the author's comment on luca-scr/GA#3 and their direct use of %dorng% without modification, this apparently only effects the operation when using registerDoRNG(). I will try to confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0