View source: R/box_pkg_fun_exists_linter.R
box_pkg_fun_exists_linter | R Documentation |
box
library attached function exists and exported by package linterChecks that functions being attached exist and are exported by the package/library being called.
box_pkg_fun_exists_linter()
For use in rhino
, see the
Explanation: Rhino style guide
to learn about the details.
A custom linter function for use with r-lib/lintr
# will produce lint
lintr::lint(
text = "box::use(stringr[function_not_exists],)",
linter = box_pkg_fun_exists_linter()
)
# okay
lintr::lint(
text = "box::use(stringr[str_pad],)",
linter = box_pkg_fun_exists_linter()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.