tests/testthat/test-bioc.R

context("Load packages from Bioconductor")

test_that("Can find dplyr", {
  skip_on_cran()

  expect_false(available_on_bioc("ACME"))
})

test_that("Can't find made up package", {
  skip_on_cran()

  expect_true(available_on_bioc("This_is_not_a_pkg"))
})

Try the available package in your browser

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

available documentation built on July 11, 2022, 1:05 a.m.