-
Notifications
You must be signed in to change notification settings - Fork 71
/
README.Rmd
72 lines (51 loc) · 2.21 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
66
67
68
69
70
71
72
---
output: github_document
editor_options:
markdown:
wrap: 79
---
<!-- 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}: Non-Invasive Pretty Printing of R Code
<!-- badges: start -->
[![R build status](https://github.com/r-lib/styler/workflows/R-CMD-check/badge.svg)](https://github.com/r-lib/styler/actions)
[![Lifecycle](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html)
[![Test coverage](https://codecov.io/gh/r-lib/styler/branch/main/graph/badge.svg)](https://app.codecov.io/gh/r-lib/styler?branch=main)
[![CRAN Status](https://www.r-pkg.org/badges/version/styler)](https://cran.r-project.org/package=styler)
<!-- badges: end -->
# Overview <img src="man/figures/logo.png" align="right" width="240" />
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/).
## Acknowledgments
Hex sticker font is [Gayathri](https://fonts.google.com/specimen/Gayathri), and
the image is taken from icon made by [Freepik](https://www.freepik.com) and
available at [flaticon.com](https://www.flaticon.com/free-icon/suit).