tests/testthat/test-lints.R

context("lints")

if (dir.exists("../../00_pkg_src")) {
  prefix <- "../../00_pkg_src/Requirements/"
} else if (dir.exists("../../R")) {
  prefix <- "../../"
} else if (dir.exists("./R")) {
  prefix <- "./"
}

test_that(
  desc = "test lints",
  code = {
    skip_on_cran()
    skip_if(dir.exists("../../00_pkg_src"))
    lintr::expect_lint_free(path = prefix)
  })

Try the requiRements package in your browser

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

requiRements documentation built on March 7, 2023, 7:30 p.m.