@@ -31,13 +31,13 @@ styler can be customized to format code according to other style guides too.
31
31
32
32
## Installation
33
33
34
- You can install the package from CRAN:
34
+ You can install the package from CRAN:
35
35
36
36
``` {r, eval = FALSE}
37
37
install.packages("styler")
38
38
```
39
39
40
- Or get the development version from GitHub:
40
+ Or get the development version from GitHub:
41
41
42
42
``` {r, eval = FALSE}
43
43
# install.packages("remotes")
@@ -106,10 +106,10 @@ style_text(
106
106
107
107
This was just the tip of the iceberg. Learn more about customization with the
108
108
tidyverse style guide in in this
109
- [ vignette] ( http://styler.r-lib.org/articles/introducing_styler.html ) . If this
110
- is not flexible enough for you, you can implement your own style guide, as
111
- explained in the corresponding
112
- [ vignette] ( http://styler.r-lib.org/articles/customizing_styler.html )
109
+ [ vignette] ( http://styler.r-lib.org/articles/introducing_styler.html ) . If this is
110
+ not flexible enough for you, you can implement your own style guide, as
111
+ explained in the corresponding
112
+ [ vignette] ( http://styler.r-lib.org/articles/customizing_styler.html ) .
113
113
114
114
## Adaption of styler
115
115
@@ -118,21 +118,26 @@ styler functionality is made available through other packages, most notably
118
118
* ` usethis::use_tidy_style() ` styles your project according to the tidyverse
119
119
style guide.
120
120
* ` reprex::reprex(style = TRUE) ` to prettify reprex code before printing. To
121
- permanently use ` style = TRUE ` without specifying it every time, you can
122
- add the following line to your ` .Rprofile ` (via ` usethis::edit_r_profile() ` ):
121
+ permanently use ` style = TRUE ` without specifying it every time, you can add the
122
+ following line to your ` .Rprofile ` (via ` usethis::edit_r_profile() ` ):
123
123
` options(reprex.styler = TRUE) ` .
124
+ * in [ ` knitr ` ] ( https://github.com/yihui/knitr ) via the code chunk option `style =
125
+ "styler"` to style code in the rendered output without touching the source
126
+ (requires knitr >= 1.20.15).
127
+ * pretty-printing of [ drake] ( https://github.com/ropensci/drake ) workflow data
128
+ frames with ` drake::drake_plan_source() ` .
124
129
125
130
## Further resources
126
131
127
- * The official [ web documentation] ( http://styler.r-lib.org/ ) of styler,
128
- containing various vignettes function documentation as well as a change-log.
129
- * [ Blog
130
- post] ( https://lorenzwalthert.netlify.com/posts/customizing-styler-the-quick-way/ )
132
+ * The official [ web documentation] ( http://styler.r-lib.org/ ) of styler,
133
+ containing various vignettes function documentation as well as a change-log.
134
+ * [ Blog
135
+ post] ( https://lorenzwalthert.netlify.com/posts/customizing-styler-the-quick-way/ )
131
136
about how you can customize styler without being an expert.
132
137
* A [ tidyverse.org blog
133
- post] ( https://www.tidyverse.org/articles/2017/12/styler-1.0.0/ ) introducing
134
- the functionality of styler.
135
- * The wiki of [ Google Summer of Code
138
+ post] ( https://www.tidyverse.org/articles/2017/12/styler-1.0.0/ ) introducing the
139
+ functionality of styler.
140
+ * The wiki of [ Google Summer of Code
136
141
2017] ( https://github.com/rstats-gsoc/gsoc2017/wiki/Noninvasive-source-code-formatting )
137
142
or the [ pkgdown] ( https://r-lib.github.io/styler/ ) page contain information
138
143
related to the initial development phase during Google Summer of Code 2017.
0 commit comments