Skip to contents

Quick Install

Just quickly install Java in the current project

java_quick_install()
Download and install and set Java in current working/project directory

Quick Set

Just quickly set Java in the current project (for use with targets/callr)

use_java()
Install specified Java version and set the JAVA_HOME and PATH environment variables in current R session

Check Java version

Check Java version with currently set environment

java_check_version_cmd()
Check installed Java version using terminal commands
java_check_version_rjava()
Check Java Version with a Specified JAVA_HOME Using a Separate R Session

Fine-grained Control

Control every step of Java download, unpacking and installation

java_download()
Download a Java distribution
java_unpack()
Unpack a Java distribution file into cache directory
java_install()
Install Java from a distribution file
java_env_set()
Set the JAVA_HOME and PATH environment variables to a given path
java_env_unset()
Unset the JAVA_HOME and PATH environment variables in the project .Rprofile

Manage files

Manage downloads, installs, and project-linked Java versions

java_list()
List the contents of the Java versions installed or cached
java_clear()
Manage Java installations and distributions caches

Other commands

rje_consent()
Obtain User Consent for rJavaEnv