[R] [R-help] how to install own R withour root?

Paul Hiemstra p.hiemstra at geo.uu.nl
Tue Jun 9 10:00:04 CEST 2009


Hi,

In addition. You can also install everything just in your home drive. 
Using the configure script you can change the installation path of all R 
related stuff:

./configure --prefix=/home/bla/progsandlibs

The binaries end up in ~/progsandlibs/bin, and the libraries in 
~/progsandlibs/bin. If you use this consistently with all the programs 
you install using ./configure and add progsandlibs to you $PATH, you can 
install all the software in your home drive with no difference in 
functionality.

cheers,
Paul

Patrick Connolly wrote:
> On Tue, 09-Jun-2009 at 11:50AM +0800, Daofeng Li wrote:
>
> |> Dear list members,
> |> 
> |> i am currently want to install Rpy2 in a linux box which has R 2.4.0
> |> installed
> |> RPy requries R 2.7.0 or above
> |> but i have no root previlleges
> |> so my question is how to install R 2.7.0 on my own directory?
>
> You might as well install R-2.9.0 while you're at it.
>
> |> and replace the system installed R 2.4.0 when i input R command from the
> |> bash Shell?
>
> You can download the R-2.9.0.tar.gz to a directory you have access to.
> I'll call it ~/Rhome/
>
> uncompress the file with 
> tar xvzf R-2.9.0.tar.gz
> and then move to the R-2.9.0 subdirectory that will be created.
>
> In that directory, you'll find a file called INSTALL which will give
> you very simple clear directions.  Don't try to make a site-wide
> installation which isn't appropriate in your case.
>
> The executable will be at 
> ~/Rhome/R-2.9.0/bin/R
>
> Assuming you have a ~/bin directory, I find the simplest thing is to
> make a link in that directory to the executable.
>
> Now the part that might be slightly tricky.  If you can't get someone
> with root access to remove the R-2.4.0 installation, it's simple
> enough to prevent it clashing with your newer version.  Make the name
> of the link in ~/bin/ something slightly different from R, such as RR
> or whatever you fancy.  You then start R with that name.
>
> HTH
>
>
>
>   


-- 
Drs. Paul Hiemstra
Department of Physical Geography
Faculty of Geosciences
University of Utrecht
Heidelberglaan 2
P.O. Box 80.115
3508 TC Utrecht
Phone:  +3130 274 3113 Mon-Tue
Phone:  +3130 253 5773 Wed-Fri
http://intamap.geo.uu.nl/~paul




More information about the R-help mailing list