Re: [R] package update

2011-05-12 Thread jjallaire
To run RStudio as root on Ubuntu you would just do: sudo rstudio

The packages in /usr/lib/R/library are the ones that came with the base
install of R. 

J.J. Allaire


--
View this message in context: 
http://r.789695.n4.nabble.com/package-update-tp3507479p3517539.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


Re: [R] package update

2011-05-12 Thread Dirk Eddelbuettel

On 9 May 2011 at 12:57, Uwe Ligges wrote:
| 
| 
| On 08.05.2011 19:54, eric wrote:
|  I tried to update my packages using update.packages()
| 
|  I got the following message:
| 
|  The downloaded packages are in
|  ‘/tmp/RtmpyDYdTX/downloaded_packages’
|  Warning in install.packages(update[instlib == l, Package], l, contriburl =
|  contriburl,  :
| 'lib = /usr/lib/R/library' is not writable
|  Error in install.packages(update[instlib == l, Package], l, contriburl =
|  contriburl,  :
| unable to install package
| 
|  How do I fix this ?
| 
| If you want to update packages in R's default library in 
| /usr/lib/R/library, you will need root permissions.

The way it is meant to work is that you (eric, the user) become a member of
the group owning that directory -- and I picked group 'staff' for that. 

In the postinst (of the Debian / Ubuntu R packages), this directory is created 
as

# edd 03 Apr 2003  cf Section 10.1.2 of Debian Policy
if [ ! -e /usr/local/lib/R ]; then
  if mkdir /usr/local/lib/R 2/dev/null; then
chown root:staff /usr/local/lib/R
chmod 2775 /usr/local/lib/R
  fi
fi
if [ ! -e /usr/local/lib/R/site-library ]; then
  if mkdir /usr/local/lib/R/site-library 2/dev/null; then
chown root:staff /usr/local/lib/R/site-library
chmod 2775 /usr/local/lib/R/site-library
  fi
fi

We could conceivably be fancier and create an R group on the system, but I
felt this is best left to local admins. 

Alternatively, if you make that directory owned by 'you' then you don't need
root either.

You can check what group you are part of via 'id'. On my Ubuntu box, I am
member of a few groups:

edd@max:~$ id
uid=1000(edd) gid=1000(edd) 
groups=1000(edd),4(adm),20(dialout),24(cdrom),27(sudo),44(video),46(plugdev),50(staff),107(lpadmin),115(admin),122(sambashare),124(libvirtd)
edd@max:~$ 

Hope this helps,  Dirk 

 
| Uwe Ligges
| 
| 
| 
| 
|  --
|  View this message in context: 
http://r.789695.n4.nabble.com/package-update-tp3507479p3507479.html
|  Sent from the R help mailing list archive at Nabble.com.
| 
|  __
|  R-help@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.
| 
| __
| R-help@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.

-- 
Gauss once played himself in a zero-sum game and won $50.
  -- #11 at http://www.gaussfacts.com

__
R-help@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.


Re: [R] package update

2011-05-09 Thread Uwe Ligges



On 08.05.2011 19:54, eric wrote:

I tried to update my packages using update.packages()

I got the following message:

The downloaded packages are in
‘/tmp/RtmpyDYdTX/downloaded_packages’
Warning in install.packages(update[instlib == l, Package], l, contriburl =
contriburl,  :
   'lib = /usr/lib/R/library' is not writable
Error in install.packages(update[instlib == l, Package], l, contriburl =
contriburl,  :
   unable to install package

How do I fix this ?


If you want to update packages in R's default library in 
/usr/lib/R/library, you will need root permissions.


Uwe Ligges





--
View this message in context: 
http://r.789695.n4.nabble.com/package-update-tp3507479p3507479.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


__
R-help@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.


[R] package update

2011-05-08 Thread eric
I tried to update my packages using update.packages() 

I got the following message:

The downloaded packages are in
‘/tmp/RtmpyDYdTX/downloaded_packages’
Warning in install.packages(update[instlib == l, Package], l, contriburl =
contriburl,  :
  'lib = /usr/lib/R/library' is not writable
Error in install.packages(update[instlib == l, Package], l, contriburl =
contriburl,  : 
  unable to install package

How do I fix this ?

--
View this message in context: 
http://r.789695.n4.nabble.com/package-update-tp3507479p3507479.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


[R] package update

2010-12-26 Thread eric

I'm running Linux Ubuntu and tried to update my packages using the
update.package() command. It appeared to download the updates ok but I got
the following message:


The downloaded packages are in ‘/tmp/RtmpFM82Ry/downloaded_packages’
Warning in install.packages(update[instlib == l, Package], l, contriburl =
contriburl,  :
  'lib = /usr/lib/R/site-library' is not writable
Error in install.packages(update[instlib == l, Package], l, contriburl =
contriburl,  : 
  unable to install packages
Calls: update.packages - install.packages

What does this mean ? And more importantly, how do I address it ?
-- 
View this message in context: 
http://r.789695.n4.nabble.com/package-update-tp3164690p3164690.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


Re: [R] package update

2010-12-26 Thread Joshua Wiley
Either switch the library path to a writable directory or run it as a su or 
sudo so you have the necessary permissions.

Cheers,

Josh

On Dec 26, 2010, at 20:45, eric ericst...@aol.com wrote:

 
 I'm running Linux Ubuntu and tried to update my packages using the
 update.package() command. It appeared to download the updates ok but I got
 the following message:
 
 
 The downloaded packages are in ‘/tmp/RtmpFM82Ry/downloaded_packages’
 Warning in install.packages(update[instlib == l, Package], l, contriburl =
 contriburl,  :
  'lib = /usr/lib/R/site-library' is not writable
 Error in install.packages(update[instlib == l, Package], l, contriburl =
 contriburl,  : 
  unable to install packages
 Calls: update.packages - install.packages
 
 What does this mean ? And more importantly, how do I address it ?
 -- 
 View this message in context: 
 http://r.789695.n4.nabble.com/package-update-tp3164690p3164690.html
 Sent from the R help mailing list archive at Nabble.com.
 
 __
 R-help@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.

__
R-help@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.


Re: [R] package update

2008-04-17 Thread Prof Brian Ripley
On Thu, 17 Apr 2008, Phil taylor wrote:

 Hi folks,

 when trying to update packages in version 2.6.1 I recuieve the following
 error messages:

Actually, they are *warnings*.

 Warning: unable to access index for repository
 http://www.sourcekeg.co.uk/cran/bin/windows/contrib/2.6
 Warning: unable to access index for repository
 http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.6
 Warning message:
 In open.connection(con, r) : cannot open: HTTP status was '0 (nil)'


 Can some one out there help interprt these for me? Is it an R problem, or is
 it related to my server?

The first is a broken CRAN mirror -- please choose a different mirror.

But otherwise rw-FAQ Q2.19 applies, for the second and third mean that you 
machine is unable to make HTTP connections.

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
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, UKFax:  +44 1865 272595

__
R-help@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.