wb_clean_cache: Clean wbData cache directory.

View source: R/utils.R

wb_clean_cacheR Documentation

Clean wbData cache directory.

Description

The package downloads files from Wormbase when needed. They are stored in a cache directory so as to alleviate the need for downloading the same file every time it is needed. Use this function to clean up the cache directory when a set of downloaded files will no longer be needed.

Usage

wb_clean_cache(WS = NULL, dir_cache = NULL, delete = TRUE)

Arguments

WS

If specified, only delete files corresponding to this Wormbase release.

dir_cache

Location of the cache directory to clean up.

delete

If FALSE, the list of files to delete is returned and nothing is actually deleted.

Value

Invisibly returns the cache directory location (if delete is TRUE).

Examples

## Not run: 
dir <- tempdir()
wb_load_gene_ids(230, dir)
list.files(dir)
wb_clean_cache(dir_cache = dir)
list.files(dir)

## End(Not run)

AlexWeinreb/wbData documentation built on April 3, 2025, 1:24 p.m.