start_r5r_java: Initialize Java and Check Version

View source: R/utils.R

start_r5r_javaR Documentation

Initialize Java and Check Version

Description

Sets up Java logging for r5r and ensures Java SE Development Kit 21 is installed.

Usage

start_r5r_java(data_path, temp_dir = FALSE, verbose = FALSE)

Arguments

data_path

A character string. The directory where the log file should be saved.

temp_dir

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

verbose

A logical. Whether to show informative messages. Defaults to FALSE.

Details

This function initializes the Java Virtual Machine (JVM) with a log path for r5r, and checks that the installed Java version is 21. If not, it stops with an informative error message and download links.

Value

No return value. The function will stop execution with an error if Java 21 is not found.

See Also

Other support functions: exists_tiff(), fileurl_from_metadata(), stop_r5(), tempdir_unique(), validate_bad_osm_ids()


r5r documentation built on Aug. 21, 2025, 5:44 p.m.