lsat_cache: Manage cached files

Description Usage Arguments Details Functions Examples

Description

Manage cached 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 rappdirs::user_cache_dir(), find your cache folder by executing rappdirs::user_cache_dir("landsat-pds")

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
lsat_cache_list()

# List info for single files
lsat_cache_details(files = lsat_cache_list()[1])
lsat_cache_details(files = lsat_cache_list()[2])

# List info for all files
lsat_cache_details()

# delete files by name in cache
# lsat_cache_delete(files = lsat_cache_list()[1])

# delete all files in cache
# lsat_cache_delete_all()

## End(Not run)

ropensci/getlandsat documentation built on Aug. 10, 2018, 11:10 a.m.