-
Notifications
You must be signed in to change notification settings - Fork 71
/
API
38 lines (34 loc) · 2.57 KB
/
API
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# API for styler package
## Exported functions
cache_activate(cache_name = NULL, verbose = !getOption("styler.quiet", FALSE))
cache_clear(cache_name = NULL, ask = TRUE)
cache_deactivate(verbose = !getOption("styler.quiet", FALSE))
cache_info(cache_name = NULL, format = "both")
compute_parse_data_nested(text, transformers = tidyverse_style(), more_specs = NULL)
create_style_guide(initialize = default_style_guide_attributes, line_break = NULL, space = NULL, token = NULL, indention = NULL, use_raw_indention = FALSE, reindention = tidyverse_reindention(), style_guide_name = NULL, style_guide_version = NULL, more_specs_style_guide = NULL, transformers_drop = specify_transformers_drop(), indent_character = " ")
default_style_guide_attributes(pd_flat)
is_asymmetric_tilde_expr(pd)
is_comment(pd)
is_conditional_expr(pd)
is_curly_expr(pd)
is_for_expr(pd)
is_function_call(pd)
is_function_declaration(pd)
is_symmetric_tilde_expr(pd)
is_tilde_expr(pd, tilde_pos = c(1L, 2L))
is_while_expr(pd)
next_non_comment(pd, pos)
previous_non_comment(pd, pos)
scope_normalize(scope, name = substitute(scope))
specify_math_token_spacing(zero = "'^'", one = c("'+'", "'-'", "'*'", "'/'"))
specify_reindention(regex_pattern = NULL, indention = 0L, comments_only = TRUE)
specify_transformers_drop(spaces = NULL, indention = NULL, line_breaks = NULL, tokens = NULL)
style_dir(path = ".", ..., style = tidyverse_style, transformers = style(...), filetype = c("R", "Rprofile", "Rmd", "Rmarkdown", "Rnw", "Qmd"), recursive = TRUE, exclude_files = NULL, exclude_dirs = c("packrat", "renv"), include_roxygen_examples = TRUE, base_indention = 0L, dry = "off")
style_file(path, ..., style = tidyverse_style, transformers = style(...), include_roxygen_examples = TRUE, base_indention = 0L, dry = "off")
style_pkg(pkg = ".", ..., style = tidyverse_style, transformers = style(...), filetype = c("R", "Rprofile", "Rmd", "Rmarkdown", "Rnw", "qmd"), exclude_files = c("R/RcppExports\\.R", "R/cpp11\\.R", "R/import-standalone.*\\.R"), exclude_dirs = c("packrat", "renv"), include_roxygen_examples = TRUE, base_indention = 0L, dry = "off")
style_text(text, ..., style = tidyverse_style, transformers = style(...), include_roxygen_examples = TRUE, base_indention = 0L)
tidyverse_math_token_spacing()
tidyverse_reindention()
tidyverse_style(scope = "tokens", strict = TRUE, indent_by = 2L, start_comments_with_one_space = FALSE, reindention = tidyverse_reindention(), math_token_spacing = tidyverse_math_token_spacing())
## Foreign S3 methods
print.vertical(x, ..., colored = getOption("styler.colored_print.vertical"), style = prettycode::default_style())