set_test_seed {xpectr} | R Documentation |
Set random seed for unit tests
Description
In order for tests to be compatible with R
versions < 3.6.0
,
we set the sample.kind
argument in set.seed()
to "Rounding"
when using R
versions >= 3.6.0
.
Usage
set_test_seed(seed = 42, ...)
Arguments
seed |
Random |
... |
Named arguments to |
Details
Initially contributed by R. Mark Sharp (github: @rmsharp).
Value
NULL
.
Author(s)
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
R. Mark Sharp
[Package xpectr version 0.4.3 Index]