View source: R/missing_package_linter.R
| missing_package_linter | R Documentation |
Check for missing packages in library(), require(), loadNamespace(), and requireNamespace() calls.
missing_package_linter()
common_mistakes, robustness
linters for a complete list of linters available in lintr.
# will produce lints
lint(
text = "library(xyzxyz)",
linters = missing_package_linter()
)
# okay
lint(
text = "library(stats)",
linters = missing_package_linter()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.