tests/testthat/test-audit_pkg.R

test_that("Test audit_description", {
  skip_on_cran()

  repos = getOption("repos")
  on.exit(options(repos = repos))
  options(repos = c(CRAN = "https://cran.rstudio.com"))
  aud = audit_description(".")
  expect_equal(nrow(aud), 3)
  expect_equal(sum(aud$no_of_vulnerabilities), 0)
})

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.