dwca_cache: Caching

Description Details Useful user functions Examples

Description

Manage cached finch files with package hoardr

Details

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

cache_delete only accepts one 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

Examples

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

# list files in cache
dwca_cache$list()

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

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

# set a different cache path from the default

## End(Not run)

ropensci/finch documentation built on Jan. 26, 2018, 5:42 a.m.