tests/testthat/test-zzz.R

context("all_attached")

test_that("returns TRUE if all packages are attached, else returns FALSE", {
  expect_true(all_attached(c("base", "utils")))
  expect_false(all_attached(c("base", "badpkg")))
})
forestgeo/fgeo documentation built on Dec. 24, 2019, 8:07 p.m.