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-Dalgaards-MacBook-Air:F pd$ export R_LIBS=~/tmp
Peter-Dalgaards-MacBook-Air:F pd$ Rscript -e '.libPaths()'
[1] "/Users/pd/tmp"
[2] "/Library/Frameworks/R.framework/Versions/3.2/Resources/library"
-pd
> On 20 Feb 2016, at 10:00 , Dario Strbenac <dstr7320 at
uni.sydney.edu.au> wrote:
>
> 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/
> $ Rscript -e ".libPaths()"
> [1] "/dskh/nobackup/biostat/Bioconductor"
"/usr/local/lib/R/site-library"
> [3] "/usr/lib/R/site-library"
"/usr/lib/R/library"
>
> Is there some other crucial information which I have missed ?
>
> --------------------------------------
> Dario Strbenac
> PhD Student
> University of Sydney
> Camperdown NSW 2050
> Australia
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com