Skip to content

Commit 0450343

Browse files
document
1 parent 7332ac5 commit 0450343

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

R/ui-caching.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ cache_clear <- function(cache_name = NULL, ask = TRUE) {
3131
#' @section Setup:
3232
#' styler by default uses caching, via the `{R.cache}` package. You will be
3333
#' asked you to let it create a permanent cache on your file system that styler
34-
#' will use in case you have not set that up already for another tool that
35-
#' uses `{R.cache}`.
36-
#' This is needed if you want to cache across R sessions and not just within.
34+
#' will use in case it is not set that up already for another tool that
35+
#' uses `{R.cache}`. We encourage users to let `{R.cache}` create a permanent
36+
#' directory for caching, because otherwise, the cache is lost at restart of R.
3737
#'
3838
#' @section Non-interactive use:
3939
#' Note that if you have never authorized `{R.cache}` to create the cache in a

README.Rmd

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ You can install the package from CRAN.
4343
install.packages("styler")
4444
```
4545

46-
You will be prompted to decide on how to use the [caching
47-
feature](https://styler.r-lib.org/dev/reference/caching.html). See `?caching`
48-
for details, in particular when you don't use styler interactively (i.e. not
49-
from the R prompt or Rstudio Addin, )
46+
If you don't use styler interactively (i.e. not from the R prompt or Rstudio
47+
Addin), make sure you authorise `{R.cache}` once to set up a permanent cache.
48+
If you use it interactively, you will be asked to grant this permission once.
49+
See `?caching` for details.
50+
5051

5152
Or get the development version from GitHub:
5253

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ You can install the package from CRAN.
3131
install.packages("styler")
3232
```
3333

34-
You will be prompted to decide on how to use the [caching
35-
feature](https://styler.r-lib.org/dev/reference/caching.html). See
36-
`?caching` for details, in particular when you don’t use styler
37-
interactively (i.e. not from the R prompt or Rstudio Addin, )
34+
If you don’t use styler interactively (i.e. not from the R prompt or
35+
Rstudio Addin), make sure you authorise `{R.cache}` once to set up a
36+
permanent cache. If you use it interactively, you will be asked to grant
37+
this permission once. See `?caching` for details.
3838

3939
Or get the development version from GitHub:
4040

man/caching.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)