tests/testthat/test-zzz.R

test_that("unloading removes shims", {
  # Do in separate process to avoid interferring with tests
  in_search <- callr::r(function() {
    library(conflicted)
    pkgload::unload("conflicted")
    ".conflicts" %in% search()
  })
  expect_false(in_search)
})
r-lib/conflicted documentation built on Feb. 27, 2024, 8:58 p.m.