if (FALSE) {
# will produce lint
lintr::lint(
text = "box::use(path/to/module_a[function_not_exists],)",
linter = box_mod_fun_exists_linter()
)
# okay
lintr::lint(
text = "box::use(path/to/module_a[function_exists],)",
linter = box_mod_fun_exists_linter()
)
}
Run the code above in your browser using DataLab