Downloads JTS JAR files to inst/java using utils::download.file(..., mode="wb")

install_jts(
  path = find.package("rjts"),
  url = NULL,
  javadoc = FALSE,
  sources = FALSE,
  testbuilder = TRUE,
  overwrite = FALSE,
  ...
)

Arguments

path

Package folder to install into; Default: find.package("rjts")

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 file.path(find.package("rjts"), "inst", "java"), then calls rJava::.jpackage() to load the JAR files into Java classpath.

Examples

if (FALSE) {
install_jts()
}