forked from r-lib/styler
-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.Rmd
65 lines (46 loc) · 1.84 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
output:
github_document:
html_preview: true
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# styler
<!-- badges: start -->
[![R build status](https://github.com/r-lib/styler/workflows/R-CMD-check/badge.svg)](https://github.com/r-lib/styler/actions)
[![Life cycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html)
[![codecov test coverage](https://codecov.io/gh/r-lib/styler/branch/main/graph/badge.svg)](https://codecov.io/gh/r-lib/styler)
[![CRAN Status](https://www.r-pkg.org/badges/version/styler)](https://cran.r-project.org/package=styler)
<!-- badges: end -->
# Overview
styler formats your code according to the
[tidyverse style guide](https://style.tidyverse.org) (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")`
```{r, out.width = "650px", echo = FALSE}
knitr::include_graphics("https://raw.githubusercontent.com/lorenzwalthert/some_raw_data/master/styler_0.1.gif")
```
## Installation
You can install the package from CRAN.
```{r, eval = FALSE}
install.packages("styler")
```
Or get the development version from GitHub:
```{r, eval = FALSE}
# install.packages("remotes")
remotes::install_github("r-lib/styler")
```
## Documentation
The following online docs are available:
- [latest CRAN release](https://styler.r-lib.org).
- [GitHub development version](https://styler.r-lib.org/dev/).