| styler_options {styler} | R Documentation |
Package options
Description
These options can be set via options() and queried via getOption().
For this, add a styler. prefix (the package name and a dot) to the option name.
Example: for an option foo, use options(styler.foo = value) to set it
and getOption("styler.foo") to retrieve the current value.
An option value of NULL means that the default is used.
Options for the styler package
-
styler.addins_style_transformer: character. The name of the style transformer to use in the addins. (default:"styler::tidyverse_style()") -
styler.cache_name: character. The name of the styler cache to use. (default: 1.10.3.9000) -
styler.cache_root: character. The directory where the cache files are stored. For more, seehelp("caching"). (default:NULL) -
styler.colored_print.vertical: logical. It decides whether or not the output should be colored withprettycode::highlight(). (default:TRUE) -
styler.ignore_alignment: logical. IfTRUE, alignment, when detected, is ignored. For more, seevignette("detect-alignment"). (default:FALSE) -
styler.ignore_start,styler.ignore_stop: character. Regular expressions to ignore lines that match them. For more, seehelp("stylerignore"). (default:"styler: off"and"styler: on", respectively) -
styler.quiet: logical. It decides whether or not to print an informative message about what the function is doing. IfTRUE, no output is printed. (default:FALSE) -
styler.test_dir_writable: logical. IfTRUE, the package tests whether the directory is writable. (default:TRUE)
Examples
getOption("styler.ignore_alignment")
options(
styler.ignore_alignment = TRUE,
styler.quiet = TRUE
)
getOption("styler.ignore_alignment")