cc_cache: Manage cached CCAFS files

Description Usage Arguments Details Functions Examples

Description

Manage cached CCAFS files

Usage

1
2
3
4
5
6
7

Arguments

files

(character) one or more complete file names

force

(logical) Should files be force deleted? Default: TRUE

Details

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

We cache using user_cache_dir, find your cache folder by executing rappdirs::user_cache_dir("ccafs")

Functions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
# list files in cache
cc_cache_list()

# List info for single files
cc_cache_details(files = cc_cache_list()[1])
cc_cache_details(files = cc_cache_list()[2])

# List info for all files
cc_cache_details()

# delete files by name in cache
# cc_cache_delete(files = cc_cache_list()[1])

# delete all files in cache
# cc_cache_delete_all()

## End(Not run)

ropenscilabs/ccafs documentation built on May 26, 2018, 8:12 a.m.