Description Usage Arguments Details Value Examples
The change in how 'set.seed' works in R 3.6 prompted the creation of this R version agnostic replacement to get unit test code to work on multiple versions of R in a Travis-CI build.
1 | set_seed(seed = 1)
|
seed |
argument to |
It seems RNGkind(sample.kind="Rounding”) does not work prior to version 3.6 so I resorted to using version dependent construction of the argument list to set.seed() in do.call().
NULL, invisibly.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.