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

Try the conflicted package in your browser

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

conflicted documentation built on Nov. 27, 2021, 1:06 a.m.