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")
})

Try the ltmle package in your browser

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

ltmle documentation built on April 15, 2023, 5:06 p.m.