Skip to contents

Returns an opinionated set of files and folders to be excluded from linting, relative to the root of the package directory. To be used with lint_rmd(), lintr::lint_dir() or lintr::lint_package().

Usage

default_exclusions(excl_inst = TRUE, excl_vignettes = TRUE)

Arguments

excl_inst

Whether or not to exclude all files under inst/. A logical scalar.

excl_vignettes

Whether or not to exclude all files under vignettes/. A logical scalar.

Value

A named list of lintr::linters.

Examples

pkgpurl::default_exclusions()
#>  [1] "docs"             "input"            "inst"             "output"           "packrat"          "pkgdown"          "renv"             "tests"           
#>  [9] "vignettes"        "R/*.gen.R"        "Rmd/*.nopurl.Rmd" "README.Rmd"