dependson requires cached chunks (#1503)
Co-authored-by: Mine Cetinkaya-Rundel <cetinkaya.mine@gmail.com>
This commit is contained in:
parent
bc64b998c0
commit
09ccc0c48b
|
@ -605,6 +605,7 @@ For example, here the `processed_data` chunk depends on the `raw-data` chunk:
|
|||
|
||||
``` {{r}}
|
||||
#| label: raw-data
|
||||
#| cache: true
|
||||
|
||||
rawdata <- readr::read_csv("a_very_large_file.csv")
|
||||
```
|
||||
|
@ -642,6 +643,7 @@ Then you can write:
|
|||
|
||||
``` {{r}}
|
||||
#| label: raw-data
|
||||
#| cache: true
|
||||
#| cache.extra: !expr file.mtime("a_very_large_file.csv")
|
||||
|
||||
rawdata <- readr::read_csv("a_very_large_file.csv")
|
||||
|
|
Loading…
Reference in New Issue