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("../"))
})
sonatype-nexus-community/oysteR documentation built on May 22, 2021, 3:34 a.m.