remove_cached_files: Delete all the given files from the package cache.

Description Usage Arguments Value Examples

View source: R/filecache.R

Description

Delete all the given files from the package cache.

Usage

1
remove_cached_files(pkg_info, relative_filenames)

Arguments

pkg_info,

named list. Package identifier, see get_pkg_info() on how to get one.

relative_filenames,

vector of strings. A vector of filenames, relative to the package cache.

Value

logical vector. For each file, whether it was deleted. Note that files which did not exist were not deleted! You should check the results using 'files_available'.

Examples

1
2
    pkg_info = get_pkg_info("mypackage")
    deleted = remove_cached_files(pkg_info, "some_file.txt")

pkgfilecache documentation built on May 18, 2021, 1:06 a.m.