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")))
})

Try the fgeo package in your browser

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

fgeo documentation built on June 20, 2019, 1:02 a.m.