Skip to content

Commit b1d0815

Browse files
also include defaults
1 parent 4673919 commit b1d0815

File tree

2 files changed

+57
-20
lines changed

2 files changed

+57
-20
lines changed

R/options.R

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,36 @@
2121
#'
2222
#' @section Options for the styler package:
2323
#'
24-
#' - `styler.addins_style_transformer`: character. The name of the style transformer to use in the addins.
25-
#' - `styler.cache_name`: character. The name of the styler cache to use.
26-
#' - `styler.cache_root`: character. The directory where the cache files are stored.
27-
#' - `styler.colored_print.vertical`: logical. It decides whether or not the output should be colored with
28-
#' `prettycode::highlight()`.
29-
#' - `styler.ignore_alignment`: logical. If `TRUE`, alignment, when detected, is ignored.
30-
#' - `styler.ignore_start`, `styler.ignore_stop`: character. Regular expressions to ignore lines that match them.
31-
#' - `styler.quiet`: logical. It decides whether or not to print an informative message about what the
32-
#' function is doing. If `TRUE`, no output is printed.
33-
#' - `styler.test_dir_writable`: logical. If `TRUE`, the package tests whether the directory is writable.
24+
#' - `styler.addins_style_transformer`: character.
25+
#' The name of the style transformer to use in the addins.
26+
#' (default: `"styler::tidyverse_style()"`)
27+
#'
28+
#' - `styler.cache_name`: character.
29+
#' The name of the styler cache to use.
30+
#' (default: current styler package version)
31+
#'
32+
#' - `styler.cache_root`: character.
33+
#' The directory where the cache files are stored.
34+
#' (default: `NULL`)
35+
#'
36+
#' - `styler.colored_print.vertical`: logical.
37+
#' It decides whether or not the output should be colored with `prettycode::highlight()`.
38+
#' (default: `TRUE`)
39+
#'
40+
#' - `styler.ignore_alignment`: logical.
41+
#' If `TRUE`, alignment, when detected, is ignored.
42+
#' (default: `FALSE`)
43+
#'
44+
#' - `styler.ignore_start`, `styler.ignore_stop`: character.
45+
#' Regular expressions to ignore lines that match them.
46+
#' (default: `"styler: off"` and `"styler: on"`, respectively)
47+
#'
48+
#' - `styler.quiet`: logical.
49+
#' It decides whether or not to print an informative message about what the function is doing.
50+
#' If `TRUE`, no output is printed.
51+
#' (default: `FALSE`)
52+
#'
53+
#' - `styler.test_dir_writable`: logical.
54+
#' If `TRUE`, the package tests whether the directory is writable.
55+
#' (default: `TRUE`)
3456
NULL

man/styler_options.Rd

Lines changed: 25 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)