tests/testthat/test-(init).R

context("Set seed")
test_that("Set seed", {
  set.seed(1)
  cat("seed set to 1\n")
  skip_on_cran() #keep seed constant on CRAN
  #skip("for testing as on cran - remove this to test everything!")
  set.seed(NULL)
  cat("seed set to NULL\n")
})
joshuaschwab/ltmle documentation built on April 20, 2023, 12:05 p.m.