Functions for styling code
style_text()
Style a string
style_file()
Style .R, .Rmd or .Rnw files
.R
.Rmd
.Rnw
style_pkg()
Prettify R source code
style_dir()
Prettify arbitrary R code
styler_addins
Stylers for RStudio Addins
Customize style guides
tidyverse_style()
The tidyverse style
specify_reindention() tidyverse_reindention()
specify_reindention()
tidyverse_reindention()
Specify what is re-indented how
specify_math_token_spacing() tidyverse_math_token_spacing()
specify_math_token_spacing()
tidyverse_math_token_spacing()
Specify spacing around math tokens
create_style_guide()
Create a style guide
specify_transformers_drop()
Specify which tokens must be absent for a transformer to be dropped
Explaining features
caching
Remember the past to be quicker in the future
stylerignore
Turn off styling for parts of the code
styler-package
Non-invasive pretty printing of R code
Utilities to help manage the styler cache
cache_activate() cache_deactivate()
cache_activate()
cache_deactivate()
Activate or deactivate the styler cache
cache_clear()
Clear the cache
cache_info()
Show information about the styler cache
print(<vertical>)
Print styled code