This functions does static code analysis.
It relies on lintr::lint_package()
.
We recommend that you activate all code diagnostics in RStudio to help
meeting the requirements.
You can find this in the menu Tools > Global options > Code >
Diagnostics.
Please have a look at vignette("philosophy")
for more details on the rules.
check_lintr(x = ".", quiet = FALSE)
Either a checklist
object or a path to the source code.
Defaults to .
.
Whether to print check output during checking.
Other both:
check_filename()
,
check_spelling()
,
custom_dictionary()
,
print.checklist_spelling()
,
read_checklist()
,
write_checklist()