Downloads JTS JAR files to user data directory using utils::download.file(..., mode="wb").

install_jts(
  url = NULL,
  javadoc = FALSE,
  sources = FALSE,
  testbuilder = TRUE,
  overwrite = FALSE,
  ...
)

Arguments

url

Optional: custom URL or path to JAR file

javadoc

Download "Javadoc" JAR? Default: FALSE

sources

Download "sources" JAR? Default: FALSE

testbuilder

Download JTS Test Builder JAR? Default: TRUE

overwrite

Overwrite existing JAR file (if present)? Default FALSE

...

additional arguments passed to utils::download.file() (e.g. quiet, method)

Value

Downloads and installs JAR files to user data directory (invisibly returns result). After running this function, the JAR files will be automatically loaded when the package is attached.

Details

JAR files are stored in a platform-specific user data directory as determined by tools::R_user_dir("rjts", which = "data"), which respects R_USER_DATA_DIR, XDG_DATA_HOME, and platform defaults. This avoids the need to bundle JAR files in the package or re-install the package after downloading JARs.

Examples

if (FALSE) { # \dontrun{
install_jts()
} # }