tests/testthat/test-use-package.R

context("use_package")

test_that("use_package() won't facilitate dependency on tidyverse", {
  scoped_temporary_package()
  expect_usethis_error(use_package("tidyverse"), "rarely a good idea")
})

Try the usethis package in your browser

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

usethis documentation built on July 4, 2019, 5:05 p.m.