gt_cleanup_data {geysertimes}R Documentation

Cleanup Old GeyserTimes Data Files

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

gt_cleanup_data(version = NULL, old = FALSE, path = gt_path())

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

# see the example in the gt_get_data help file.

[Package geysertimes version 0.1.9 Index]