Skip to content
/ styler Public

Non-invasive pretty printing of R code

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.md
Notifications You must be signed in to change notification settings

r-lib/styler

Folders and files

NameName
Last commit message
Last commit date
Dec 9, 2024
Dec 10, 2024
Nov 30, 2024
Dec 10, 2024
Jan 13, 2024
Dec 10, 2024
May 11, 2024
May 23, 2024
Jan 13, 2024
Sep 25, 2021
May 13, 2024
Jun 15, 2024
Nov 28, 2024
Feb 1, 2024
May 14, 2024
Dec 9, 2024
Mar 18, 2021
Apr 18, 2022
May 24, 2023
Mar 24, 2024
Jan 17, 2024
Jan 17, 2024
May 24, 2024
May 5, 2024
Mar 9, 2017

Repository files navigation

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

R build status Lifecycle Test coverage CRAN Status

Overview

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")

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.