I just upgraded RStudio for OSX to V1.1.456, and it does not recognize the R_LIBS_USER set in my .bash_profile. R from the console has no such problem. When I open RStudio, ignores my environment variable
so my libraries aren't available and the .rproj files fail. Rstudio seems to be making up its own R_LIBS_USER location, which doesn't exist:
> Sys.getenv("R_LIBS_USER")  "~/Library/R/3.5/library"
If I switch to the Terminal, that has the correct value for R_LIBS_USER.
If I set .libPaths() manually and reload the packages it seems to work for that session, but fails again when I restart RStudio.
How do I fix this so RStudio respects the environment variable?