unused_import_linter {lintr} | R Documentation |
Check that imported packages are actually used
unused_import_linter(
allow_ns_usage = FALSE,
except_packages = c("bit64", "data.table", "tidyverse")
)
allow_ns_usage |
Suppress lints for packages only used via namespace.
This is |
except_packages |
Character vector of packages that are ignored. These are usually attached for their side effects. |
best_practices, common_mistakes, configurable, executing
linters for a complete list of linters available in lintr.