Skip to content

Commit 081fb13

Browse files
sugest installing from CRAN
1 parent 9ec5379 commit 081fb13

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

README.Rmd

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,19 @@ The goal of styler is to provide non-invasive pretty-printing of R source code
2828
while adhering to the [tidyverse](https://github.com/tidyverse/style) formatting
2929
rules. Support for custom style guides is planned.
3030

31-
You can install the package from GitHub:
3231

32+
33+
You can install the package from CRAN:
34+
```{r, eval = FALSE}
35+
install.packages("styler")
36+
```
37+
38+
Or get the development version from GitHub:
3339
```{r, eval = FALSE}
3440
# install.packages("remotes")
3541
remotes::install_github("r-lib/styler")
3642
```
3743

38-
3944
You can style a simple character vector of code with `style_text()`:
4045
```{r echo=FALSE, message=FALSE}
4146
pkgload::load_all()

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ source code while adhering to the
1919
[tidyverse](https://github.com/tidyverse/style) formatting rules.
2020
Support for custom style guides is planned.
2121

22-
You can install the package from GitHub:
22+
You can install the package from CRAN:
23+
24+
``` r
25+
install.packages("styler")
26+
```
27+
28+
Or get the development version from GitHub:
2329

2430
``` r
2531
# install.packages("remotes")

0 commit comments

Comments
 (0)