Create a minimal lintr config file with box
modules support as a starting point
for customization
use_box_lintr(path = ".", type = c("basic_box", "rhino"))
Path to project root where a .lintr
file should be created.
If the .lintr
file already exists, an error will be thrown.
The kind of configuration to create
basic_box
creates a minimal lintr config based on the tidyverse
configuration of lintr
.
This starts with lintr::linters_with_defaults()
and is customized for box
module
compatibility
rhino
creates a lintr config based on the Rhino style guide
Path to the generated configuration, invisibly.
if (FALSE) { # \dontrun{
# use default box-compatible set of linters
box.linters::use_box_lintr()
# use `rhino` set of linters
box.linters::use_box_lintr(type = "rhino")
} # }