From ggrothendieck at gmail.com  Sat Jan 19 17:10:25 2008
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Sat, 19 Jan 2008 11:10:25 -0500
Subject: [Rd] Updating library
In-Reply-To: <47920570.3040208@statistik.tu-dortmund.de>
References: <971536df0801181728r5d2fb752k6c413457ac640563@mail.gmail.com>
	<alpine.LFD.1.00.0801190713370.23137@gannet.stats.ox.ac.uk>
	<4791B623.2080604@biostat.ku.dk>
	<47920570.3040208@statistik.tu-dortmund.de>
Message-ID: <971536df0801190810o428164bdoa33cc4a1d98b52bc@mail.gmail.com>

Ideally one could just choose the
 packages | update
menu and it would just work.  Possibilities include updating packages into
the private library if they otherwise fail to install or providing an
error message
on what to do.

On Jan 19, 2008 9:13 AM, Uwe Ligges <ligges at statistik.tu-dortmund.de> wrote:
> hits=-2.6 tests=BAYES_00
> X-USF-Spam-Flag: NO
>
>
>
> Peter Dalgaard wrote:
> > Prof Brian Ripley wrote:
> >> You need to use 'Run as admininistrator' for just the session updating
> >> those packages (assuming you installed R with administrator privileges and
> >> are running it without: you did not say).
> >>
> >> This is covered in rw-FAQ Q2.24.
> >>
> >>
> > I only have WINE to hand here and package installation doesn't quite
> > work there, but shouldn't it also work in the  absense of administrative
> > privileges to just install lattice and VR into your private win-library
> > and update them there?
>
> Sure, but that works. What Gabor reported is that updating lattice/VR
> and co did not succeed. And it did not, because it was installed in R's
> default library (which can only be updated with administrator privileges
> in his case, we guess).
> Gabor could install lattice/VR into his private library and after that
> updating will succeed.
>
> Best,
> uwe
>
>
>
>
>
>
> >
> >     -p
> >
> >> On Fri, 18 Jan 2008, Gabor Grothendieck wrote:
> >>
> >>
> >>> On Vista my R installation is in
> >>>
> >>>  C:\Program Files\R\R-2.6.0
> >>>
> >>> and there is a library here:
> >>>
> >>>   %userprofile%\Documents\R\win-library\2.6
> >>>
> >>> If I use the GUI Packages menu to update my library it
> >>> works ok _except_ for any packages such as lattice and
> >>> the VR bundle that come with R.  For those I get this (this
> >>> is what I got when I tried to update lattice but I get a similar
> >>> message for the VR bundle as well):
> >>>
> >>>
> >>>> update.packages(ask='graphics')
> >>>>
> >>> --- Please select a CRAN mirror for use in this session ---
> >>> Warning in install.packages(update[instlib == l, "Package"], l,
> >>> contriburl = contriburl,  :
> >>>  'lib = "C:/PROGRA~1/R/R-26~1.0/library"' is not writable
> >>> Error in install.packages(update[instlib == l, "Package"], l,
> >>> contriburl = contriburl,  :
> >>>  unable to install packages
> >>>
> >>> I am using R-2.6.1 (even though the directory says 2.6.0) since I
> >>> tend to write over the prior directory if its just an upgrade involving
> >>> the last digit of the R version.
> >>>
> >>>
> >>>> R.version.string
> >>>>
> >>> [1] "R version 2.6.1 Patched (2007-12-06 r43610)"
> >>>
> >>> How should I go about updating lattice and the VR bundle?
> >>>
> >>> ______________________________________________
> >>> 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
>



[Rd] Updating library
Gabor Grothendieck