Hello there,
I was trying to have RStudio picked the library location automatically based on R version. I put these lines in either .Renviron
or .Rprofile
but it didn't work
if(grepl("3.6", strsplit(version[['version.string']], ' ')[[1]][3])){
R_LIBS_USER="~/R/win-library/R3"
} else {
R_LIBS_USER="~/R/win-library/R4"
}
Anyone tried to do this before and succeeded?
Thank you!