Downloads R5.jar and saves it locally, inside the package directory.

download_r5(
  version = "6.9.0",
  quiet = FALSE,
  force_update = FALSE,
  temp_dir = FALSE
)

Arguments

version

A string. The version of R5 to be downloaded. Defaults to the latest version.

quiet

A logical. Whether to show informative messages when downloading the file. Defaults to FALSE.

force_update

A logical. Whether to overwrite a previously downloaded R5.jar in the local directory. Defaults to FALSE.

temp_dir

A logical. Whether the file should be saved in a temporary directory. Defaults to FALSE.

Value

The path to the downloaded file.

See also

Other setup: setup_r5()

Examples

library(r5r)

download_r5(version = "6.9.0", temp_dir = TRUE)
#> Downloading R5 jar file to /tmp/Rtmp3XT04Q/r5-v6.9-all.jar
#> [1] "/tmp/Rtmp3XT04Q/r5-v6.9-all.jar"