Learn R Programming

opentripplanner (version 0.5.1)

otp_dl_jar: Download OTP Jar File

Description

Download the OTP jar file from maven.org

Usage

otp_dl_jar(
  path = NULL,
  version = "1.5.0",
  file_name = paste0("otp-", version, "-shaded.jar"),
  url = "https://repo1.maven.org/maven2/org/opentripplanner/otp",
  quiet = FALSE,
  cache = TRUE
)

Value

The path to the OTP file

Arguments

path

path to folder where OTP is to be stored

version

a character string of the version number default is "1.5.0"

file_name

file name to give the otp default "otp.jar"

url

URL to the download server

quiet

logical, passed to download.file, default FALSE

cache

logical, default TRUE, see details

Details

As of version 0.3.0.0 `otp_dl_jar` will cache the JAR file within the package and ignore the `path` argument. You can force a new download to be saved in the `path` location by setting `cache = FALSE`.

See Also

Other setup: otp_build_graph(), otp_check_java(), otp_check_version(), otp_dl_demo(), otp_make_config(), otp_setup(), otp_stop(), otp_validate_config(), otp_write_config()

Examples

Run this code
if (FALSE) {
otp_dl_jar(tempdir())
}

Run the code above in your browser using DataLab