gt_cleanup_data: Cleanup Old GeyserTimes Data Files

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/gt_cleanup_data.R

Description

Removes a particular version of the GeyserTimes data files that have been download and stored on disk by gt_get_data. Alternatively, the function will remove all old versions of the GeyserTimes data files, keeping only the most recent files.

Usage

1

Arguments

version

a character value, the specific version of the GeyserTimes data files to be removed. The version number is the date that the files were downloaded, with the format yyyy-m-d e.g. "2021-05-15".

old

a logical value, if TRUE, all but the most recent version of the data files found under path will be removed.

path

a character value, the location on disk where the GeyserTimes data files.

Details

Users who regularly download the latest GeysersTimes data may want to call gt_cleanup_data(old=TRUE) to clean out old copies of the data.

Value

a character vector, the versions of the data files that were removed. If no files are removed, NULL is returned.

Author(s)

Stephen Kaluzny <spkaluzny@gmail.com>

See Also

gt_path, gt_get_data

Examples

1
# see the example in the gt_get_data help file.

geysertimes documentation built on Sept. 9, 2021, 9:06 a.m.