tests/testthat/helper.R

# from usethis
is_build_ignored <- function(pattern, ..., base_path = usethis::proj_get()) {
  lines <- readLines(file.path(base_path, ".Rbuildignore"), warn = FALSE)
  length(grep(pattern, x = lines, fixed = TRUE, ...)) > 0
}
ropenscilabs/rodev documentation built on May 16, 2022, 8:05 a.m.