tests/testthat/test-bare.R

source("../fns.R")

skip_on_cran()

test_that("bare", {

  # keep working directory
  wd <- getwd()

  # test bare
  pkg <- create_tmp_package()
  setwd(pkg)
  on.exit({
    setwd(wd)
    delete_tmp_package(pkg)
  })
  expect_output(scaffold_bare(edit = FALSE))
  expect_error(scaffold_bare(edit = FALSE))
  expect_message(bundle_dev())
})

Try the packer package in your browser

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

packer documentation built on May 28, 2022, 5:06 p.m.