SkillAgentSearch skills...

Styler

Non-invasive pretty printing of R code

Install / Use

/learn @r-lib/Styler
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<!-- README.md is generated from README.Rmd. Please edit that file -->

{styler}: Non-Invasive Pretty Printing of R Code

<!-- badges: start -->

R build
status Lifecycle Test
coverage CRAN
Status

<!-- badges: end -->

Overview <img src="man/figures/logo.png" align="right" width="240" />

styler formats your code according to the tidyverse style guide (or your custom style guide) so you can direct your attention to the content of your code. It helps to keep the coding style consistent across projects and facilitate collaboration. You can access styler through

  • the RStudio Addin as demonstrated below
  • R functions like style_pkg(), style_file() or style_text()
  • various other tools described in vignette("third-party-integrations")
<img src="https://raw.githubusercontent.com/lorenzwalthert/some_raw_data/master/styler_0.1.gif" width="650px" />

Installation

You can install the package from CRAN.

install.packages("styler")

Or get the development version from GitHub:

# install.packages("remotes")
remotes::install_github("r-lib/styler")

Documentation

The following online docs are available:

Acknowledgments

Hex sticker font is Gayathri, and the image is taken from icon made by Freepik and available at flaticon.com.

Related Skills

View on GitHub
GitHub Stars772
CategoryDevelopment
Updated19h ago
Forks71

Languages

R

Security Score

85/100

Audited on Apr 2, 2026

No findings