Path: blob/main/src/resources/schema/cell-cache.yml
12921 views
- name: cache1tags:2engine: knitr3schema: boolean4default: false5description:6short: "Whether to cache a code chunk."7long: |8Whether to cache a code chunk. When evaluating9code chunks for the second time, the cached chunks are skipped (unless they10have been modified), but the objects created in these chunks are loaded from11previously saved databases (`.rdb` and `.rdx` files), and these files are12saved when a chunk is evaluated for the first time, or when cached files are13not found (e.g., you may have removed them by hand). Note that the filename14consists of the chunk label with an MD5 digest of the R code and chunk15options of the code chunk, which means any changes in the chunk will produce16a different MD5 digest, and hence invalidate the cache.1718- name: cache-path19hidden: true20tags:21engine: knitr22schema: path23description: "A prefix to be used to generate the paths of cache files"2425- name: cache-vars26tags:27engine: knitr28schema:29maybeArrayOf: string30description:31short: "Variable names to be saved in the cache database."32long: |33Variable names to be saved in34the cache database. By default, all variables created in the current chunks35are identified and saved, but you may want to manually specify the variables36to be saved, because the automatic detection of variables may not be robust,37or you may want to save only a subset of variables.3839- name: cache-globals40tags:41engine: knitr42schema: string43description:44short: "Variables names that are not created from the current chunk"45long: |46Variables names that are not created from the current chunk.4748This option is mainly for `autodep: true` to work more precisely---a chunk49`B` depends on chunk `A` when any of `B`'s global variables are `A`'s local50variables. In case the automatic detection of global variables in a chunk51fails, you may manually specify the names of global variables via this option.52In addition, `cache-globals: false` means detecting all variables in a code53chunk, no matter if they are global or local variables.5455- name: cache-lazy56tags:57engine: knitr58schema: boolean59default: true60description:61short: "Whether to `lazyLoad()` or directly `load()` objects"62long: |63Whether to `lazyLoad()` or directly `load()` objects. For very large objects,64lazyloading may not work, so `cache-lazy: false` may be desirable (see65[#572](https://github.com/yihui/knitr/issues/572)).6667- name: cache-rebuild68tags:69engine: knitr70schema: boolean71default: false72description: "Force rebuild of cache for chunk"7374- name: cache-comments75tags:76engine: knitr77schema: boolean78default: true79description: "Prevent comment changes from invalidating the cache for a chunk"8081- name: dependson82tags:83engine: knitr84schema:85anyOf:86- maybeArrayOf: string87- maybeArrayOf: number88description: |89Explicitly specify cache dependencies for this chunk (one or more chunk labels)9091- name: autodep92tags:93engine: knitr94schema: boolean95default: false96description: "Detect cache dependencies automatically via usage of global variables"979899