Package: styler 1.11.0.9001

Lorenz Walthert

styler: Non-Invasive Pretty Printing of R Code

Pretty-prints R code without changing the user's formatting intent.

Authors:Kirill Müller [aut], Lorenz Walthert [cre, aut], Indrajeet Patil [aut]

styler_1.11.0.9001.tar.gz
styler_1.11.0.9001.zip(r-4.7)styler_1.11.0.9001.zip(r-4.6)styler_1.11.0.9001.zip(r-4.5)
styler_1.11.0.9001.tgz(r-4.6-any)styler_1.11.0.9001.tgz(r-4.5-any)
styler_1.11.0.9001.tar.gz(r-4.7-any)styler_1.11.0.9001.tar.gz(r-4.6-any)
styler_1.11.0.9001.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
styler/json (API)

# Install 'styler' in R:
install.packages('styler', repos = c('https://r-lib.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/r-lib/styler/issues

Pkgdown/docs site:https://styler.r-lib.org

On CRAN:

Conda:

pretty-print

16.25 score 771 stars 68 packages 1.5k scripts 64k downloads 30 exports 14 dependencies

Last updated from:23a1ec0233. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK181
source / vignettesOK190
linux-release-x86_64OK169
macos-release-arm64OK127
macos-oldrel-arm64OK121
windows-develOK149
windows-releaseOK126
windows-oldrelOK137
wasm-releaseOK125

Exports:cache_activatecache_clearcache_deactivatecache_infocompute_parse_data_nestedcreate_style_guidedefault_style_guide_attributesis_asymmetric_tilde_expris_commentis_conditional_expris_curly_expris_for_expris_function_callis_function_declarationis_symmetric_tilde_expris_tilde_expris_while_exprnext_non_commentprevious_non_commentscope_normalizespecify_math_token_spacingspecify_reindentionspecify_transformers_dropstyle_dirstyle_filestyle_pkgstyle_texttidyverse_math_token_spacingtidyverse_reindentiontidyverse_style

Dependencies:clidigestgluelifecyclemagrittrpurrrR.cacheR.methodsS3R.ooR.utilsrlangrprojrootvctrswithr

Third-party integrations

Last update: 2025-10-13
Started: 2021-03-03

Customizing styler
How styler works | Implementation details | Showcasing the development of a styling rule | Cache invalidation

Last update: 2024-05-23
Started: 2017-08-24

The effect of strict = FALSE

Last update: 2024-05-20
Started: 2021-03-03

Distribute custom style guides
Reference implementations | Design patterns

Last update: 2024-05-08
Started: 2021-10-10

Get started
Entry-points | Passing arguments to the style guide | Invasiveness | scope: What to style? | How strict do you want styler to be? | Ignoring certain lines | Caching | Dry mode | More configuration options | Roxygen code example styling | Custom math token spacing | Custom indention | Custom style guides

Last update: 2024-02-02
Started: 2021-03-03

Alignment detection
Overview | Examples | Details | Function calls | Comments | Assignment

Last update: 2023-06-05
Started: 2019-08-09

Caching

Last update: 2023-06-05
Started: 2020-02-05

Remove rules
Theory | Practice | Some other rules and their transformers

Last update: 2023-06-05
Started: 2021-10-10

Readme and manuals

Help Manual

Help pageTopics
styler: Non-Invasive Pretty Printing of R Codestyler-package styler
Activate or deactivate the styler cachecache_activate cache_deactivate
Clear the cachecache_clear
Show information about the styler cachecache_info
Remember the past to be quicker in the futurecaching
Obtain a nested parse table from a character vectorcompute_parse_data_nested
Create a style guidecreate_style_guide
Specify spacing around math tokensmath_token_spacing specify_math_token_spacing tidyverse_math_token_spacing
Find the index of the next or previous non-comment in a parse table.next_non_comment previous_non_comment
What is a parse table representing?is_asymmetric_tilde_expr is_comment is_conditional_expr is_curly_expr is_for_expr is_function_call is_function_declaration is_symmetric_tilde_expr is_tilde_expr is_while_expr pd_is
Print styled codeprint.vertical
Specify what is re-indented howreindention specify_reindention tidyverse_reindention
Convert the styling scope to its lower-level representationscope_normalize
Specify which tokens must be absent for a transformer to be droppedspecify_transformers_drop
Prettify arbitrary R codestyle_dir
Style files with R source codestyle_file
Prettify R source codestyle_pkg
Style a stringstyle_text
Stylers for RStudio Addinsstyler_addins
Package optionsstyler_options
Turn off styling for parts of the codestylerignore
The tidyverse styletidyverse_style