[Rd] install.packages with R 2.9.1 under Vista?

Gabor Grothendieck ggrothendieck at gmail.com
Wed Jul 1 14:10:23 CEST 2009


I use a different editor so I only have general comments but
regardless of editor it
would be best to keep and use the library in your user space to avoid
any problems
with permissions on Vista.

Note that this is the same problem as on UNIX where you need root permissions
to modify the R library if its not in user space and is not a problem
specific to Vista.


2009/7/1 Uwe Ligges <ligges at statistik.tu-dortmund.de>:
> Spencer,
>
> see ?R_LIBS_USER
>
> once R created "C:\\Users\\sgraves\\Documents/R/win-library/2.9"  for you it
> is used as a library (since it is the default for R_LIBS_USER if the latter
> is unset otherwise). Just delete the whole directory and it won't be used
> further on.
>
> Best,
> Uwe
>
>
>
> spencerg wrote:
>>
>> Dear Uwe:
>>
>>     Thanks very much.  Based on your suggestion, I deleted
>> "C:\\Users\\sgraves\\Documents/R/win-library/2.9", which got created when I
>> first installed R 2.9.1 into the default, write-protected area and then did
>> "install.packages".  When I uninstalled that write-protected copy and
>> installed it in a different location, the directory
>> "C:\\Users\\sgraves\\Documents/R/win-library/2.9" remained, and Rgui
>> directed "install.packages" to that directory, though Rterm did not.  I had
>> not intentionally set "R_LIBS" nor any other special thing like that, so I
>> was confused.
>>
>>     Thanks again.
>>     Best Wishes,
>>     Spencer
>>
>>
>> Uwe Ligges wrote:
>>>
>>>
>>> spencerg wrote:
>>>>
>>>>     What do I need to do to get "install.packages" to work properly for
>>>> me in R 2.9.1 under Vista?
>>>>
>>>>     Currently, install.packages in Rgui 2.9.1 by default goes to
>>>> "C:\\Users\\sgraves\\Documents/R/win-library/2.9".  This is a problem for
>>>> me, because R running under Emacs does not currently look there.
>>>>
>>>>     I made the mistake last night of first installing R 2.9.1 in the
>>>> default "C:\Program Files".  When I found that packages I installed using
>>>> Rgui could not be found from within Emacs, I uninstalled R from "C:\Program
>>>> Files" and reinstalled it under "C:\Users\sgraves\R" alongside R 2.9.0,
>>>> which has allowed "install.packages" from Rgui to be accessed from R under
>>>> Emacs.
>>>>
>>>>     I've traced the problem to the different behavior of ".libPaths()":
>>>>
>>>> *** Rgui: .libPaths()
>>>> [1] "C:\\Users\\sgraves\\Documents/R/win-library/2.9"
>>>> [2] "C:/Users/sgraves/R/R-2.9.1/library"
>>>> *** R under Emacs: > .libPaths()
>>>> [1] "c:/Users/sgraves/R/R-2.9.1/library"
>>>>
>>>>
>>>>     What do you suggest?      Thanks,
>>>
>>>
>>>
>>> Either set for the second setup
>>> "C:\\Users\\sgraves\\Documents/R/win-library/2.9" as a default library path
>>> (e.g. via env var R_LIBS) or remove it from the  first setup (in a personal
>>> startup file).
>>>
>>> Best wishes,
>>> Uwe
>>>
>>>
>>>
>>>>     Spencer
>>>>
>>>> ______________________________________________
>>>> R-devel at r-project.org mailing list
>>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>>
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



More information about the R-devel mailing list