View source: R/download_validator.R
| download_validator | R Documentation |
Downloads MobilityData's command line tool to validate GTFS feeds.
download_validator(
path = tempdir(),
version = "latest",
force = FALSE,
quiet = TRUE
)
path |
A string. The directory where the validator should be saved to. By default, the function downloads the validator to a temporary directory, which is removed when the R session ends. Use a persistent directory to reuse the validator across sessions. |
version |
A string. The version of the validator that should be
downloaded. Defaults to |
force |
A logical. Whether to overwrite a previously downloaded
validator in |
quiet |
A logical. Whether to hide log messages and progress bars.
Defaults to |
Invisibly returns the normalized path to the downloaded validator.
If the validator can't be downloaded due to network problems (e.g. no
internet connection or GitHub being unavailable), it informs that with a
message and invisibly returns NULL.
Other validation:
list_validator_versions(),
validate_gtfs()
path <- tempdir()
download_validator(path)
# specifying a specific version
download_validator(path, version = "6.0.0")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.