Skip to content

Commit

Permalink
always set R_LIBS_USER on *nix
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Oct 4, 2020
1 parent 07dc5d2 commit ce0e9d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/config.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
writeLines('options(repos = "https://cran.rstudio.com")', '~/.Rprofile')
if (Sys.getenv('R_LIBS_USER') == '') {
if (.Platform$OS.type == 'unix' || Sys.getenv('R_LIBS_USER') == '') {
dir.create('~/R', FALSE, TRUE)
writeLines('R_LIBS_USER="~/R"', '~/.Renviron')
}

0 comments on commit ce0e9d3

Please sign in to comment.