From pdalgd at gmail.com  Sat Feb 20 13:28:42 2016
From: pdalgd at gmail.com (peter dalgaard)
Date: Sat, 20 Feb 2016 13:28:42 +0100
Subject: [Rd] R Package Installation Ignores libPaths Setting
In-Reply-To: <SN1PR0101MB143937FB6A94AA54C672A003CDA00@SN1PR0101MB1439.prod.exchangelabs.com>
References: <SN1PR0101MB14390FF9CD858614E238134BCDAE0@SN1PR0101MB1439.prod.exchangelabs.com>
	<56C57AA0.2020503@stats.ox.ac.uk>
	<SN1PR0101MB143937FB6A94AA54C672A003CDA00@SN1PR0101MB1439.prod.exchangelabs.com>
Message-ID: <C8D32168-D8AA-468C-B783-C276A5451C2C@gmail.com>

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



[Rd] R Package Installation Ignores libPaths Setting
peter dalgaard