Software
styler

styler

Non-invasive pretty printing of R code

R

styler is an R package that automatically formats R code according to the tidyverse style guide or a custom style guide. It can be used through RStudio Addins, R functions, or integrated with other tools to style individual files, entire packages, or text strings.

The package helps maintain consistent code formatting across projects and teams without manual effort. It’s non-invasive, meaning it focuses on whitespace, indentation, and line breaks rather than changing the logic or structure of your code. This makes it useful for improving code readability and enforcing style conventions in collaborative environments.