Learn R Programming

fulltext (version 1.0.1)

cache: Set or get cache options

Description

Set or get cache options

Usage

cache_options_set(path = "fulltext", backend = "ext", overwrite = FALSE)

cache_options_get()

Arguments

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: FALSE

Managing cached files

The dafault cache directory is paste0(rappdirs::user_cache_dir(), "/R/fulltext"), but you can set your own path using cache_path_set()

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

See Also

ftxt_cache

Examples

Run this code
# NOT RUN {
cache_options_get()
cache_options_set(path = "foobar")
cache_options_get()
# }

Run the code above in your browser using DataLab