Skip to content

Commit 82e1f19

Browse files
committed
mention xfun::cache_exec()
1 parent 84ee5dc commit 82e1f19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

14-knitr-misc.Rmd

+2
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ The second label will be silently changed to `test-1`. This may avoid overwritin
360360

361361
## A more transparent caching mechanism {#cache-rds}
362362

363+
**Note**: A new caching mechanism [`xfun::cache_exec()`](https://git.yihui.org/xfun/manual.html#sec:man-cache_exec) has been introduced to supersede the `xfun::cache_rds()` introduced in this section. You are now recommended to use `xfun::cache_exec()`, which is also transparent and yet still flexible.
364+
363365
If you feel the caching mechanism of **knitr** introduced in Section \@ref(cache) is too complicated (it is!), you may consider a simpler caching mechanism\index{caching} based on the function `xfun::cache_rds()`\index{xfun!cache\_rds()}, e.g.,
364366

365367
```{r, eval=FALSE}

0 commit comments

Comments
 (0)