ftdoi_cache: Caching

Description Details Useful user functions See Also Examples

Description

Manage cached ftdoi files with hoardr

Details

The dafault cache directory is paste0(rappdirs::user_cache_dir(), "/R/ftdoi"), 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

Useful user functions

See Also

Other ftdoi: ftd_doi(), ftd_fetch_patterns(), ftd_members(), ftd_prefixes(), prefix_local()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
ftdoi_cache

# list files in cache
ftdoi_cache$list()

# delete certain database files
# ftdoi_cache$delete("file path")
# ftdoi_cache$list()

# delete all files in cache
# ftdoi_cache$delete_all()
# ftdoi_cache$list()

## End(Not run)

fulltext documentation built on June 12, 2021, 9:06 a.m.