From e2fcf4928d9a472943fbdb0da9afb9e6ecbb0f31 Mon Sep 17 00:00:00 2001 From: Nirmal Patel Date: Wed, 26 Oct 2016 18:59:40 +0530 Subject: [PATCH] Update rmarkdown.Rmd (#489) Changed cached = TRUE to cache = TRUE. --- rmarkdown.Rmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rmarkdown.Rmd b/rmarkdown.Rmd index 02be532..752435a 100644 --- a/rmarkdown.Rmd +++ b/rmarkdown.Rmd @@ -232,7 +232,7 @@ The caching system must be used with care, because by default it is based on the rawdata <- readr::read_csv("a_very_large_file.csv") `r chunk` - `r chunk`{r processed_data, cached = TRUE} + `r chunk`{r processed_data, cache = TRUE} processed_data <- rawdata %>% filter(!is.na(import_var)) %>% mutate(new_variable = complicated_transformation(x, y, z)) @@ -240,7 +240,7 @@ The caching system must be used with care, because by default it is based on the Caching the `processed_data` chunk means that it will get re-run if the dplyr pipeline is changed, but it won't get rerun if the `read_csv()` call changes. You can avoid that problem with the `dependson` chunk option: - `r chunk`{r processed_data, cached = TRUE, dependson = "raw_data"} + `r chunk`{r processed_data, cache = TRUE, dependson = "raw_data"} processed_data <- rawdata %>% filter(!is.na(import_var)) %>% mutate(new_variable = complicated_transformation(x, y, z))