Skip to content

Commit

Permalink
cleanup env when setting JAVA_HOME in .Rprofile
Browse files Browse the repository at this point in the history
  • Loading branch information
e-kotov committed May 28, 2024
1 parent aec5ed0 commit 8d9692b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/java_env.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ set_java_env <- function(java_home, where = c("both", "session", "project")) {
"old_path <- Sys.getenv('PATH') # rJavaEnv",
"new_path <- file.path(Sys.getenv('JAVA_HOME'), 'bin') # rJavaEnv",
"Sys.setenv(PATH = paste(new_path, old_path, sep = .Platform$path.sep)) # rJavaEnv",
"rm(old_path, new_path) # rJavaEnv",
"# rJavaEnv end: Manage JAVA_HOME"
)

Expand Down

0 comments on commit 8d9692b

Please sign in to comment.