Hi,

i just add /home/lidaof/R/bin and /home/lidaof/R/lib to the end of the PATH
variable
yet i type R command runs the system installed R 2.4.0...

On Tue, Jun 16, 2009 at 5:48 PM, Daofeng Li <lid...@gmail.com> wrote:

> Hi,
>
> actullay i am try to intsall Rpy2 (a python interface for R) later, for
> RPy2 requries R 2.7.0 higher
> but default intsall RPy2 will search the system installed R 2.4.0
> so i think to replace the system installed R with my R in my home directory
>
> echo $PATH
>
> /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/bio/pub/bin:/bio/pub/bin/bin:/bio/pub/bin3:/bio/pub/sw/iprscan:/bio/pub/sw/j2re/bin:/bio/pub/sw/wuBlast/rawWuBlast
>
> add my home/bin/R to the PATH? and where to set the R_lib? i guess RPy2
> detects the R library files?
>
> Best Regards!
>   On Mon, Jun 15, 2009 at 4:30 AM, Patrick Connolly <
> p_conno...@slingshot.co.nz> wrote:
>
>> Or you could do what I suggested below.  I had assumed you had a
>> ~/bin/ directory and knew how to make a symbolic link.  If that
>> assumption is incorrect, let us know and we can tell you how to do
>> it.
>>
>> As Bill suggests, removing the present old version would be
>> preferable, but I can understand you could be in a position of having
>> to depend on an unreachable administrator, so that might not be
>> possible.
>>
>> best
>>
>> Patrick
>>
>> On Sat, 13-Jun-2009 at 03:43PM +1000, bill.venab...@csiro.au wrote:
>>
>> |> You need to adjust your PATH environment variable so that the
>> /path_of_my_home/R/bin comes ahead of the system R/bin directory.  (Or you
>> can simply remove the system R/bin and substitute your own R/bin.
>> |>
>> |> W.
>> |> ________________________________________
>> |> From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On
>> Behalf Of Daofeng Li [lid...@gmail.com]
>> |> Sent: 13 June 2009 15:28
>> |> To: Paul Hiemstra
>> |> Cc: r-help@r-project.org
>> |> Subject: Re: [R] [R-help] how to install own R withour root?
>> |>
>> |> Hi,
>> |>
>> |> i had intstalled R in my home directory
>> |> and i can run the new install R from /path_of_my_home/R/bin/R
>> |> but when i type R, it runs the system installed older R 2.4
>> |> can i just type an R command and it runs my new installed R?
>> |>
>> |> Thanks!
>> |>
>> |> On Tue, Jun 9, 2009 at 4:00 PM, Paul Hiemstra <p.hiems...@geo.uu.nl>
>> wrote:
>> |>
>> |> > 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
>> |> >
>> |> >
>> |>
>> |>
>> |> --
>> |> Daofeng Li,PhD Candidate
>> |> China Agricultural University
>> |>
>> |>         [[alternative HTML version deleted]]
>> |>
>> |> ______________________________________________
>> |> 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<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<http://www.r-project.org/posting-guide.html>
>> |> and provide commented, minimal, self-contained, reproducible code.
>>
>>  --
>> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
>>   ___    Patrick Connolly
>>  {~._.~}                   Great minds discuss ideas
>>  _( Y )_                 Average minds discuss events
>> (:_~*~_:)                  Small minds discuss people
>>  (_)-(_)                              ..... Eleanor Roosevelt
>>
>> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
>>
>
>
>
> --
>  Daofeng Li,PhD Candidate
> China Agricultural University
>



-- 
Daofeng Li,PhD Candidate
China Agricultural University

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to