Re: [R] Install R to local path?

From: Prof Brian Ripley <>
Date: Wed, 2 Jan 2008 22:07:54 +0000 (GMT)

Well, the INSTALL _script_ is for installing packages. But the top-level INSTALL file says

'This document concerns building and installing R from sources. Pre-made   binaries are made available for some systems with varying regularity and   can be obtained from CRAN (see the RESOURCES file).

  The main source of information on installation is the `R Installation   and Administration Manual', an HTML copy of which is available as file   `doc/html/R-admin.html'. Please read that before installing R. But   if you are impatient, read on but please refer to the manual to   resolve any problems. (If you obtained R using Subversion, the manual   is at doc/manual/R-admin.texi.)'

The cited manual does tell you how to install R in other places. For example,

./configure --prefix=$HOME/R
make install

will install into ~/R. (Since ~ is not an sh concept, you do need to use $HOME.) There is a lot more detail in the manual, and you can even install to a different place once R is built.

On Wed, 2 Jan 2008, Daniel Oberski wrote:

> Dear all,
> I am trying to install R on a (Linux Debian) machine where I do not
> have root access. So far I succeeded in compiling from source and
> running R.
> But I would really like to be able to use "make install" and to be
> able to install certain packages such as foreign. Now these actions
> require permissions for directories that I do not have.
> In particular I would like R home to be ~/bin/R, the libraries to
> reside in ~/lib, and so on.
> I looked in the INSTALL script and it would seem to be possible to
> accomplish this by editing, running ./configure and
> make-ing again. But the file is rather daunting and I do
> not know which variables I need to change...
> Any help or pointers would be greatly appreciated here.
> Best regards,
> Daniel

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 02 Jan 2008 - 22:18:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 Jan 2008 - 22:30:05 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive