download_validator: Download MobilityData's GTFS validator

View source: R/download_validator.R

download_validatorR Documentation

Download MobilityData's GTFS validator

Description

Downloads MobilityData's command line tool to validate GTFS feeds.

Usage

download_validator(path, version = "latest", force = FALSE, quiet = TRUE)

Arguments

path

A string. The directory where the validator should be saved to.

version

A string. The version of the validator that should be downloaded. Defaults to "latest", but accepts version numbers as strings (i.e. to download version v4.0.0 please enter "4.0.0"). Please check MobilityData/gtfs-validator releases for the full set of available versions.

force

A logical. Whether to overwrite a previously downloaded validator in path. Defaults to FALSE.

quiet

A logical. Whether to hide log messages and progress bars. Defaults to TRUE.

Value

Invisibly returns the normalized path to the downloaded validator.

See Also

Other validation: validate_gtfs()

Examples


path <- tempdir()

download_validator(path)

# specifying a specific version
download_validator(path, version = "4.0.0")


gtfstools documentation built on Nov. 24, 2022, 5:09 p.m.