tests/testthat/test-check-pkg-installed.R

test_that("check_pkg_installed() works", {
  expect_snapshot(
    error = TRUE,
    x = check_pkg_installed("asdf")
  )
  expect_null(check_pkg_installed("targets"))
})

Try the geotargets package in your browser

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

geotargets documentation built on June 8, 2025, 11:54 a.m.