java_install {rJavaEnv} | R Documentation |
Unpack Java distribution file into cache directory and link the installation into a project directory, optionally setting the JAVA_HOME
and PATH
environment variables to the Java version that was just installed.
java_install(
java_distrib_path,
project_path = NULL,
autoset_java_env = TRUE,
quiet = FALSE
)
java_distrib_path |
A |
project_path |
A |
autoset_java_env |
A |
quiet |
A |
The path to the installed Java directory.
## Not run:
# set cache dir to temporary directory
options(rJavaEnv.cache_path = tempdir())
# download, install and autoset environmnet variables for Java 17
java_17_distrib <- java_download(version = "17")
java_install(java_distrib_path = java_17_distrib, project_path = tempdir())
## End(Not run)