-
Notifications
You must be signed in to change notification settings - Fork 45
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
Pull Request follow-up for #30: Reset radom seed #59
Conversation
@jonathandroth I reset the random seed here after the function's run, which was an easy mod. I can also not set the random seed internally and instead modify the code to use something like halton sequences? I wonder if CRAN will complain about a function fiddling with the global environment at all. |
In the past i have had an argument to the function `seed =0` and done
set.seed(seed).
I think I did this in the staggered package, which they approved. But maybe
I just got lucky that they didn't notice it
…On Fri, Jun 21, 2024 at 8:04 AM Mauricio Caceres Bravo < ***@***.***> wrote:
@jonathandroth <https://github.com/jonathandroth> I reset the random seed
here after the function's run, which was an easy mod. I can also not set
the random seed internally and instead modify the code to use something
like halton sequences? I wonder if CRAN will complain about a function
fiddling with the global environment at all.
—
Reply to this email directly, view it on GitHub
<#59 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE6EXFFHBC2JPLNBXZP3TILZIQJDNAVCNFSM6AAAAABJVXRVKSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBSGYZDCNZZG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@jonathandroth I'm not sure it's luck because the same thing happens in one function here that they also didn't flag. So I think if we put it in an argument they won't complain. However, if the argument is not user-accessible then it has the same effect, we're just hiding it from them and going against their best practices. I guess I could make the seed user-accessible and pass it around throughout? |
If it's not a lot of work to allow the user to set it, then sure. If it is,
let's just make it an argument internally
…On Fri, Jun 21, 2024, 11:16 AM Mauricio Caceres Bravo < ***@***.***> wrote:
@jonathandroth <https://github.com/jonathandroth> I'm not sure it's luck
because the same thing happens in one function here that they also didn't
flag. So I think if we put it in an argument they won't complain.
However, if the argument is not user-accessible then it has the same
effect, we're just hiding it from them and going against their best
practices. I guess I could make the seed user-accessible and pass it around
throughout?
—
Reply to this email directly, view it on GitHub
<#59 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE6EXFHENGHXAX4B2QJMN53ZIQ7TZAVCNFSM6AAAAABJVXRVKSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBSHE2DMNJVGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@jonathandroth I made the seed user-accessible. I see the PR branch is passing all checks so if you're good I'll merge to main and reply in #42 |
Sounds good to me, thanks! |
No description provided.