tests/testthat/test-remove.R

context("remove")

test_that("it works", {
  setup({
    jetpack::init()

    expect_error(jetpack::remove("DBI"), "Cannot find package 'DBI' in DESCRIPTION file")
  })
})

Try the jetpack package in your browser

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

jetpack documentation built on Oct. 31, 2022, 5:07 p.m.