You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/java_install.R
+52-16Lines changed: 52 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
#'
3
3
#' @description
4
4
#' 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.
5
-
#'
5
+
#'
6
6
#' @param java_distrib_path A `character` vector of length 1 containing the path to the Java distribution file.
7
7
#' @param project_path A `character` vector of length 1 containing the project directory where Java should be installed. If not specified or `NULL`, defaults to the current working directory.
8
8
#' @param autoset_java_env A `logical` indicating whether to set the `JAVA_HOME` and `PATH` environment variables to the installed Java directory. Defaults to `TRUE`.
@@ -13,7 +13,7 @@
13
13
#'
14
14
#' @examples
15
15
#' \dontrun{
16
-
#'
16
+
#'
17
17
#' # set cache dir to temporary directory
18
18
#' options(rJavaEnv.cache_path = tempdir())
19
19
#' # download, install and autoset environmnet variables for Java 17
if (!quiet) cli::cli_inform("Junction creation failed. This is likely because the project directory is not on the same disk as the R package cache directory. Java files will instead be copied to {.path {project_version_path}}")
98
+
if (!quiet)
99
+
cli::cli_inform(
100
+
"Junction creation failed. This is likely because the project directory is not on the same disk as the R package cache directory. Java files will instead be copied to {.path {project_version_path}}"
if (!quiet) cli::cli_inform("Java {version} ({filename}) for {platform} {arch} installed at {.path {installed_path}} and symlinked to {.path {project_version_path}}", .envir= environment())
150
+
if (!quiet)
151
+
cli::cli_inform(
152
+
"Java {version} ({filename}) for {platform} {arch} installed at {.path {installed_path}} and symlinked to {.path {project_version_path}}",
0 commit comments