tests/testthat/test-list_packages.R

test_that("list packages on absent environment", {
  testthat::skip_if_offline()
  testthat::skip_on_cran()

  testthat::expect_error(
    object = {
      list_packages(env_name = "non-existing-env")
    },
    class = "condathis_list_packages_missing_env"
  )
})

Try the condathis package in your browser

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

condathis documentation built on April 12, 2025, 2:01 a.m.