dependson requires cached chunks (#1503)

Co-authored-by: Mine Cetinkaya-Rundel <cetinkaya.mine@gmail.com>
This commit is contained in:
Mitsuo Shiota 2023-06-05 23:07:25 +09:00 committed by GitHub
parent bc64b998c0
commit 09ccc0c48b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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")