Package: styler 1.10.3.9000

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.10.3.9000.tar.gz
styler_1.10.3.9000.zip(r-4.5)styler_1.10.3.9000.zip(r-4.4)styler_1.10.3.9000.zip(r-4.3)
styler_1.10.3.9000.tgz(r-4.4-any)styler_1.10.3.9000.tgz(r-4.3-any)
styler_1.10.3.9000.tar.gz(r-4.5-noble)styler_1.10.3.9000.tar.gz(r-4.4-noble)
styler_1.10.3.9000.tgz(r-4.4-emscripten)styler_1.10.3.9000.tgz(r-4.3-emscripten)
styler.pdf |styler.html
styler/json (API)
NEWS

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

Peer review:

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

On CRAN:

pretty-print

30 exports 695 stars 8.95 score 14 dependencies 58 dependents 55.2k downloads

Last updated 18 days agofrom:7b5327c116

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

Alignment detection

Rendered fromdetect-alignment.Rmdusingknitr::rmarkdownon Jun 15 2024.

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

Caching

Rendered fromcaching.Rmdusingknitr::rmarkdownon Jun 15 2024.

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

Customizing styler

Rendered fromcustomizing_styler.Rmdusingknitr::rmarkdownon Jun 15 2024.

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

Distribute custom style guides

Rendered fromdistribute_custom_style_guides.Rmdusingknitr::rmarkdownon Jun 15 2024.

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

Get started

Rendered fromstyler.Rmdusingknitr::rmarkdownon Jun 15 2024.

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

Remove rules

Rendered fromremove_rules.Rmdusingknitr::rmarkdownon Jun 15 2024.

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

The effect of strict = FALSE

Rendered fromstrict.Rmdusingknitr::rmarkdownon Jun 15 2024.

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

Third-party integrations

Rendered fromthird-party-integrations.Rmdusingknitr::rmarkdownon Jun 15 2024.

Last update: 2022-06-26
Started: 2021-03-03

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