Skip to content
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

Add optional .seed parameter for modules -- sets a seed at the event level #163

Merged
merged 10 commits into from
Jun 1, 2021

Conversation

eliotmcintire
Copy link
Contributor

No description provided.

@CeresBarros
Copy link
Member

Can you add this to newModule:

defineParameter(".seed", "list", NULL, NA, NA,
                 paste("Named list of seeds to use for each event (names). E.g., list('init' = 123) will set.seed(123)",
                       "at the start of the init event and unset it at the end. Defaults to NULL, meaning that",
                       "no seeds will be set")),

eliotmcintire and others added 8 commits April 22, 2021 22:34
@eliotmcintire
NOTE: enabling the `.seed` parameter in the module template causes a random `\n` to be inserted between module metadata elements. I can't figure out why, or how to work around it. The issue manifests in the assignment to a list (via `lapply`) in `rmExtraSpacesEOLList()`.
@achubaty achubaty merged commit fcde305 into development Jun 1, 2021
@eliotmcintire eliotmcintire deleted the dotSeed branch June 9, 2022 05:31
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.

None yet

3 participants