tests/testthat/test-get_available_packages.R

test_that("getting available packages from both local and bioc returns an error", {
  expect_error(get_available_packages(local = TRUE, bioc = TRUE),
               "You cannot use both 'local' and 'bioc' options at once.")
})

test_that("chache is cleared without errors", {
  expect_error(get_available_packages(local = TRUE, reset_cache = TRUE), NA)
})

Try the deepdep package in your browser

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

deepdep documentation built on June 22, 2024, 12:23 p.m.