tests/testthat.R

library(testthat)
library(rngtools)

test_check("rngtools")

# test that everything works fine when the RNG version is set on backward-compatibility mode
if( utils::compareVersion(paste0(R.version$major, ".", R.version$minor), "3.6.0") >=  0 ){
  RNGversion("3.5.0")
  test_check("rngtools")
  
}

Try the rngtools package in your browser

Any scripts or data that you put into this service are public.

rngtools documentation built on Sept. 20, 2021, 5:08 p.m.