The GenomicDataCommons package will cache downloaded
files to minimize network and allow for
offline work. These functions are used to create a cache directory
if one does not exist, set a global option, and query that
option. The cache directory will default to the user "cache"
directory according to specifications in
app_dir. However, the user may want to set
this to another direcotory with more or higher performance
1 2 3 4 5
character(1) directory path, will be created recursively if not present.
logical(1) whether or not to message the location of the cache directory after creation.
logical(1) specifying whether to allow the function to create the cache directory without asking the user first. In an interactive session, if the cache directory does not exist, the user will be prompted before creation.
The cache structure is currently just a directory with each file being represented by a path constructed as: CACHEDIR/UUID/FILENAME. The cached files can be manipulated using standard file system commands (removing, finding, etc.). In this sense, the cache sytem is minimalist in design.
character(1) directory path that serves as the base directory for GenomicDataCommons downloads.
the created directory (invisibly)
gdc_set_cache: (Re)set the GenomicDataCommons cache
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.