View source: R/box_universal_import_linter.R
box_universal_import_linter | R Documentation |
box
library universal import linterChecks that all function imports are explicit. package[...]
is not used.
box_universal_import_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 lints
lintr::lint(
text = "box::use(base[...])",
linters = box_universal_import_linter()
)
lintr::lint(
text = "box::use(path/to/file[...])",
linters = box_universal_import_linter()
)
# okay
lintr::lint(
text = "box::use(base[print])",
linters = box_universal_import_linter()
)
lintr::lint(
text = "box::use(path/to/file[do_something])",
linters = box_universal_import_linter()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.