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,
...
)Optional: custom URL or path to JAR file
Download "Javadoc" JAR? Default: FALSE
Download "sources" JAR? Default: FALSE
Download JTS Test Builder JAR? Default: TRUE
Overwrite existing JAR file (if present)? Default FALSE
additional arguments passed to utils::download.file() (e.g. quiet, method)
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.
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.
if (FALSE) { # \dontrun{
install_jts()
} # }