set_test_seed {xpectr}R Documentation

Set random seed for unit tests

Description

[Experimental]

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 seed.

...

Named arguments to set.seed().

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]