box.linters version
0.10.5
Sample source code to lint
Make sure to have {here} not installed.
foo.R
bar.R
box::use(
here[here],
)
#' @export
asdf <- here
Lint command used
lintr::lint(
"./foo.R",
linters = box.linters::box_mod_fun_exists_linter()
)
Lint result
Linters fails to run with the following error:
Error: Linter 'box.linters::box_mod_fun_exists_linter' failed in <snip>/foo.R: there is no package called ‘here’
Expected result
I would expect an error lint and/or a graceful handling of the missing package.