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.

See also