tests/testthat/test-utils_packages.R

crew_test("load packages", {
  skip_on_cran()
  expect_silent(load_packages(packages = "base", library = NULL))
  expect_crew_error(
    suppressWarnings(
      load_packages(packages = "does;not;exist", library = NULL)
    )
  )
})

Try the crew package in your browser

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

crew documentation built on April 11, 2025, 6:17 p.m.