locate_files: Locate a file on disk

Description Usage Arguments Value

View source: R/utils.R

Description

Helper function to locate files. Given below params, the function returns 0 or more files found at location/names given.

Usage

1
2
locate_files(data_dir = tempdir(), type = NULL, years = NULL,
  quiet = FALSE)

Arguments

data_dir

Super directory where dataset(s) were first downloaded to.

type

One of 'Accidents', 'Casualties', 'Vehicles'; defaults to 'Accidents', ignores case.

years

Years for which data are to be found

quiet

Print out messages (files found)

Value

Character string representing the full path of a single file found, list of directories where data from the Department for Transport (stats19::filenames) have been downloaded, or NULL if no files were found.


ITSLeeds/stats19 documentation built on May 4, 2019, 7:35 a.m.