bike_rm_test_data: Removes test data written with 'bike_write_test_data()'

Description Usage Arguments Value Examples

Description

The function bike_write_test_data() writes several small zip-compressed files to disk. The default location is tempdir(), in which case these files will be automatically removed on termination of current R session. If, however, any other value for data_dir is passed to bike_write_test_data(), then the resultant files ought be deleted by calling this function.

Usage

1
bike_rm_test_data(data_dir = tempdir())

Arguments

data_dir

Directory in which data were extracted.

Value

Number of files successfully removed, which should equal six.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
bike_write_test_data ()
list.files (tempdir ())
bike_rm_test_data ()

bike_write_test_data (data_dir = getwd ())
list.files ()
bike_rm_test_data (data_dir = getwd ())

## End(Not run)

bikedata documentation built on Jan. 9, 2020, 5:09 p.m.