Learn R Programming

stoRy (version 0.2.2)

stoRy_cache: Manage cached files

Description

Manage stoRy package cached files.

stoRy_cache_path() returns the file path where stoRy package files are cached.

stoRy_cache_details() returns a tibble of cached file names with accompanying metadata. File size is in MB.

delete_lto_version_cached_files() delete cached files associated with an LTO version.

delete_stoRy_cached_files() delete cached files. Takes a vector of file path strings as input.

delete_all_cached_stoRy_files() clear cache.

print_stoRy_cache_info() print to console cache contents.

Usage

stoRy_cache_path()

stoRy_cache_details()

delete_lto_version_cached_files(version, force = TRUE, verbose = TRUE)

delete_stoRy_cached_files(files, force = TRUE)

delete_all_cached_stoRy_files(force = TRUE)

print_stoRy_cache_info()

Arguments

version

A length-one character vector specifying an LTO version tag. Set to "latest" to configure the latest numbered version, and "dev" to configure the LTO developmental version.

force

Set to TRUE to force delete files.

verbose

A logical value indicating whether status messages should be output to console.

files

A list of file path strings to delete from cache.

Examples

Run this code
if (FALSE) {
# list files in cache
stoRy_list_cached_files()

# List info for all files
print_stoRy_cache_info()

# delete all files in cache
# stoRy_delete_all_cached_files()
}

Run the code above in your browser using DataLab