tests/testthat/test-renv.R

test_that("Test Renvlock file", {
  skip_on_cran()

  # Sanity check to make sure the directory exists
  expect_true(file.exists("renv.lock"))
  audit = oysteR::audit_renv_lock()
  expect_equal(ncol(audit), 8)
  expect_equal(nrow(audit), 57)
  ## Run when no renv lock available
  expect_error(oysteR::audit_renv_lock("../"))
})

Try the oysteR package in your browser

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

oysteR documentation built on Jan. 11, 2021, 1:36 a.m.