tests/testthat/test-cran.R

context("Load packages from CRAN")

test_that("Can find dplyr", {
  expect_false(available_on_cran("dplyr"))
})

test_that("Can't find made up package", {
  expect_true(available_on_cran("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 Nov. 8, 2018, 5:04 p.m.