项目作者: r-lib

项目描述 :
Non-invasive pretty printing of R code
高级语言: R
项目地址: git://github.com/r-lib/styler.git
创建时间: 2017-02-08T19:16:37Z
项目社区:https://github.com/r-lib/styler

开源协议:Other

下载


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

R build
status
Lifecycle
Test
coverage
CRAN
Status

" class="reference-link">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.

  1. install.packages("styler")

Or get the development version from GitHub:

  1. # install.packages("remotes")
  2. 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.