tests/testthat/test-lints.R

if (dir.exists("../../00_pkg_src")) {
  prefix <- "../../00_pkg_src/BiasCorrector/"
} 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)
  })
kapsner/BiasCorrector documentation built on Oct. 18, 2024, 3:27 a.m.