Skip to content

Commit 4a9798a

Browse files
committed
Normalize Java home path for Windows using normalizePath in java_build_env_set_rprofile
1 parent 8a745e4 commit 4a9798a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/java_build_env.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ java_build_env_set_rprofile <- function(java_home, project_path) {
319319
rprofile_path <- file.path(project_path, ".Rprofile")
320320

321321
if (.Platform$OS.type == "windows") {
322-
java_home <- gsub("\\", "/", java_home)
322+
java_home <- normalizePath(java_home, winslash = "/", mustWork = FALSE)
323323
}
324324

325325
lines_to_add <- c(

0 commit comments

Comments
 (0)