bike_write_test_data: Writes test data bundled with package to zip files

bike_write_test_dataR Documentation

Writes test data bundled with package to zip files

Description

Writes very small test files to disk that can be used to test the package. The entire package works by reading zip-compressed data files provided by the various hire bicycle systems. This function generates some equivalent data that can be read into an SQLite database by the store_bikedata() function, so that all other package functionality can then be tested from the resultant database. This function is also used in the examples of all other functions.

Usage

bike_write_test_data(data_dir = tempdir())

Arguments

data_dir

Directory in which data are to be extracted. Defaults to tempdir(). If any other directory is specified, files ought to be removed with bike_rm_test_data().

Examples

## Not run: 
bike_write_test_data ()
list.files (tempdir ())
bike_rm_test_data ()

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

## End(Not run)

ropensci/bikedata documentation built on Feb. 7, 2024, 6:04 a.m.