vignettes/how-to/rhino-default.Rmd
rhino-default.Rmd
Projects created with rhino
version 1.8.0 and later come preconfigured with a .lintr
file.
linters:
linters_with_defaults(
defaults = box.linters::rhino_default_linters,
line_length_linter = lintr::line_length_linter(100)
)
box.linters
with an existing Rhino (< 1.8.0) project
Refer to the Rhino 1.8 Migration Guide to upgrade to the latest version.
The following code is used to setup your .lintr
config file.
box.linters::use_box_lintr(type = "rhino")
box
-compatible linters for rhino
All linter functions included in the box.linters
package are activated for Rhino projects. Please refer to the Rhino style guide for more information.
Use the helper function included in the rhino
package to lint your Rhino project.
rhino::lint_r()