[R] Libraries issue

Ben Ward benjamin.ward at bathspa.org
Sat Mar 19 21:51:04 CET 2011


Hi,

Got it fixed now, thanks everyone, still confused as to why it's never 
done that before, but at least it's fine now.

Ben W.

On 19/03/2011 19:38, Henrik Bengtsson wrote:
> Hi.
>
> On Sat, Mar 19, 2011 at 12:17 PM, peter dalgaard<pdalgd at gmail.com>  wrote:
>> On Mar 19, 2011, at 17:37 , Ben Ward wrote:
>>
>>> Hi, I've just discovered R keeps installing my packages into
>>> C:\Users\Ben instead of "C:\\Users\\Ben;/R/win-library/2.12" which is
>>> what is returned by running Sys.getenv("R_LIBS_USER").
>>>
>> Er, I'm rusty on Windows, but that's what it is supposed to do, isn't it? It's a path with two semicolon separated directories.
> Unless explicitly requested to be so, most likely it is indeed meant
> to be without the semicolon, i.e. "C:\\Users\\Ben/R/win-library/2.12"
> (or "normalized" "C:\\Users\\Ben\R\win-library\2.12", but that doesn't
> matter here).  This is in line with what is said in help(".libPaths"):
>
> "By default R_LIBS is unset, and R_LIBS_USER is set to subdirectory
> ‘R/win-library/x.y’ of the home directory, for R x.y.z."
>
> Here are my Windows environment variables:
>
>> Sys.getenv("R_LIBS_USER")
>                         R_LIBS_USER
> "C:\\Users\\hb/R/win-library/2.12"
>
>> Sys.getenv("HOME")
>             HOME
> "C:\\Users\\hb"
>
> There should certainly not be any semicolons in the latter.  If you
> set HOME to "C:\\Users\\hb;" before starting R, you do get:
>
>> Sys.getenv("R_LIBS_USER")
>                          R_LIBS_USER
> "C:\\Users\\hb;/R/win-library/2.12"
>
>
> My $.02
>
> /henrik
>
>> --
>> Peter Dalgaard
>> Center for Statistics, Copenhagen Business School
>> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
>> Phone: (+45)38153501
>> Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>



More information about the R-help mailing list