@@ -25,10 +25,18 @@ The following online docs are available:
2525
2626## Installation
2727
28- You can install the package from CRAN:
28+ You can install the package from CRAN.
2929
3030``` r
3131install.packages(" styler" )
32+
33+ # if you want to benefit from caching, styler will ask you to install R.cache
34+ # if you don't have it already
35+ install.packages(" R.cache" )
36+
37+ # If you just installed R.cache, you need to authorise it to create a permanent
38+ # caching directory on your computer once.
39+ cache_info() # then type 'y' for Yes.
3240```
3341
3442Or get the development version from GitHub:
@@ -38,6 +46,8 @@ Or get the development version from GitHub:
3846remotes :: install_github(" r-lib/styler" )
3947```
4048
49+ And set up caching the same way as for the CRAN version.
50+
4151## API
4252
4353You can style a simple character vector of code with ` style_text() ` :
@@ -65,21 +75,6 @@ region.
6575
6676<img src =" https://raw.githubusercontent.com/lorenzwalthert/some_raw_data/master/styler_0.1.gif " width =" 650px " />
6777
68- ## Features
69-
70- - style roxygen2 code examples.
71-
72- - do not re-style [ deliberate code
73- alignment] ( https://styler.r-lib.org/articles/detect-alignment.html ) .
74-
75- - [ ignore some
76- lines] ( https://styler.r-lib.org/reference/stylerignore.html ) for
77- styling (GitHub development version).
78-
79- - [ cache styled
80- expressions] ( https://styler.r-lib.org/reference/caching.html ) for
81- speed (GitHub development version).
82-
8378## Configuration
8479
8580You can decide on the level of invasiveness with the scope argument. You
@@ -115,6 +110,21 @@ options with the tidyverse style guide, see the [help file for
115110for a quick overview or the [ introductory
116111vignette] ( https://styler.r-lib.org/articles/introducing_styler.html ) .
117112
113+ ## Features
114+
115+ - style roxygen2 code examples.
116+
117+ - do not re-style [ deliberate code
118+ alignment] ( https://styler.r-lib.org/articles/detect-alignment.html ) .
119+
120+ - [ ignore some
121+ lines] ( https://styler.r-lib.org/dev/reference/stylerignore.html ) for
122+ styling.
123+
124+ - [ cache styled
125+ expressions] ( https://styler.r-lib.org/dev/reference/caching.html )
126+ for speed.
127+
118128## Adaption of styler
119129
120130styler functionality is made available through other tools, most notably
0 commit comments