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?
jmbarbone/jordan documentation built on April 1, 2024, 7:46 p.m.