I am integrating lintr testing into an R package but I want to exclude the zzz.R file contained in the R directory for various reasons. When using
lintr::expect_lint_free(exclusions = list("R/zzz.R")) it does not seem to properly exclude the exclusion, but if I use
lintr::lint_package(exclusions = list("R/zzz.R")) it properly excludes the zzz.R file. See below.
Below is a simple example illustrating differing results. You can also use this example pkg to reproduce this sample problem.
Maybe I'm missing something but I thought
expect_lint_free passed its arguments to
lint_package? Is there different procedure for specifying files to exclude from linting when using
lintr::expect_lint_free()? If this is a bug then I'll post an issue on Github but I wanted to make sure I wasn't overlooking some.