From ripley at stats.ox.ac.uk  Sat Jan 19 08:19:15 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Sat, 19 Jan 2008 07:19:15 +0000 (GMT)
Subject: [Rd] Updating library
In-Reply-To: <971536df0801181728r5d2fb752k6c413457ac640563@mail.gmail.com>
References: <971536df0801181728r5d2fb752k6c413457ac640563@mail.gmail.com>
Message-ID: <alpine.LFD.1.00.0801190713370.23137@gannet.stats.ox.ac.uk>

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.

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
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] Updating library
Prof Brian Ripley