java_download {rJavaEnv} | R Documentation |
Download a Java distribution
java_download(
version = 21,
distribution = "Corretto",
cache_path = getOption("rJavaEnv.cache_path"),
platform = platform_detect()$os,
arch = platform_detect()$arch,
quiet = FALSE,
temp_dir = FALSE
)
version |
|
distribution |
The Java distribution to download. If not specified, defaults to "Amazon Corretto". Currently only "Amazon Corretto" is supported. |
cache_path |
The destination directory to download the Java distribution to. Defaults to a user-specific data directory. |
platform |
The platform for which to download the Java distribution. Defaults to the current platform. |
arch |
The architecture for which to download the Java distribution. Defaults to the current architecture. |
quiet |
A |
temp_dir |
A logical. Whether the file should be saved in a temporary directory. Defaults to |
The path to the downloaded Java distribution file.
## Not run:
# download distribution of Java version 17
java_download(version = "17", temp_dir = TRUE)
# download default Java distribution (version 21)
java_download(temp_dir = TRUE)
## End(Not run)