Description Details Useful user functions Examples
Manage cached rdpla
files with hoardr
The dafault cache directory is
paste0(rappdirs::user_cache_dir(), "/R/rdpla")
, 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
dpla_cache$cache_path_get()
get cache path
dpla_cache$cache_path_set()
set cache path
dpla_cache$list()
returns a character vector of full
path file names
dpla_cache$files()
returns file objects with metadata
dpla_cache$details()
returns files with details
dpla_cache$delete()
delete specific files
dpla_cache$delete_all()
delete all files, returns nothing
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
dpla_cache
# list files in cache
dpla_cache$list()
# delete certain database files
# dpla_cache$delete("file path")
# dpla_cache$list()
# delete all files in cache
# dpla_cache$delete_all()
# dpla_cache$list()
# set a different cache path from the default
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.