Description Usage Arguments Value Managing cached files See Also Examples
Set or get cache options
1 2 3 4 5 6 7 8 | cache_options_set(
path = "fulltext",
backend = "ext",
overwrite = FALSE,
full_path = NULL
)
cache_options_get()
|
path |
(character) End of directory path. Default: "fulltext". See Details. |
backend |
(character) Only "ext" supported for now. |
overwrite |
(logical) overwrite cached file or not. Default: |
full_path |
(character) Full cache path. If given |
both functions return the cache options in a named list
The dafault cache directory is paste0(rappdirs::user_cache_dir(), "/R/fulltext")
,
but you can set your own path using cache_path_set()
You can alternatively set the entire cache path with the full_path
parameter.
You can only pass path
or full_path
- but not both.
cache_delete
only accepts 1 file name, while
cache_delete_all
doesn't accept any names, but deletes all files.
For deleting many specific files, use cache_delete
in a lapply()
type call
ftxt_cache, cache_file_info()
Other caching-functions:
cache_file_info()
,
ftxt_cache
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
cache_options_get()
cache_options_set(path = "foobar")
cache_options_get()
# set full path
path <- tempdir()
cache_options_set(full_path = path)
cache_options_get()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.