tests/testthat/test-namespace.R

test_that("loadAllNamespace() works", {
  expect_message(loadAllNamespace("magrittr", warn.conflicts = FALSE), NA)
  detach("package:magrittr")
  # should throw at least 1 message
  muffle(expect_message(loadAllNamespace("magrittr")))
  detach("package:magrittr")
})

# lintr thinks there isn't a terminal line here?

Try the mark package in your browser

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

mark documentation built on May 29, 2024, 5:13 a.m.