Works for me. Which shell are you using? Are you setting .libPaths elsewhere?
Peter-Dalgaards-MacBook-Air:F pd$ R_LIBS=~/tmp Rscript -e '.libPaths()'
[1] "/Users/pd/tmp"
[2] "/Library/Frameworks/R.framework/Versions/3.2/Resources/library"
Peter-Dal
Good day,
I believe from the documentation that folders in R_LIBS should appear in the
output of .libPaths, but they do not. The documentation contains "The library
search path is initialized at startup from the environment variable R_LIBS ..."
However,
$ export R_LIBS=/users/stgrad/dario/tmp/