tests/testthat/test_onLoad.R

testthat::context(".onLoad")

testthat::test_that(".onLoad works",{
  bdpar:::.onLoad()
  options <- BdparOptions$new()
  op <- options$getAll()
  testthat::expect_equal(bdpar.Options$getAll(), op)
  testthat::expect_equal(class(getOption("loggerSettings")$logger[[1]]),
                         "Logger")
})

Try the bdpar package in your browser

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

bdpar documentation built on Aug. 22, 2022, 5:08 p.m.