Re: [R] Installing R into home directory?

From: <p_connolly_at_slingshot.co.nz>
Date: Fri, 04 Jul 2008 11:55:56 +1200


On Tue, 01-Jul-2008 at 09:46AM +0100, Steve Cadman wrote:

|> I've been trying to install R into a user's home directory for them
|> by compiling from source code, on a machine for which neither of us
|> has administrative access. I've run configure using the --prefix
|> option to specify their home directory.

I don't find that necessary. Simply run ./configure from the directory you wish the installation to take place, then 'make' works fine. My guess is that you are not working as the owner of that /home/ directory, otherwise, you'd have no problem AFAIK. I could see that would create issues (not that I've tried it).

|>
|> This seems to work OK up to a point, but when running make, it
|> seems to expect to be able to install IDL into /usr/local/, and if
|> you are unable to do this, you seem to have to abort make. Any
|> ideas as to how I can work round this?

So I suppose you never got as far as 'make install'. Well, it's not necessary, even if it is possible. I make a link in my ~/bin/ directory which points to the R executable I've created by the make process. Of course, you'd have to do something else if the user doesn't have ~/bin/ in the PATH.

That's a handy approach in that it gives you the ability to have several versions of R available, and unless you have a defect in your OS, installing R on Linux is a doddle.

HTH

--
*************************************************************
   ___      Patrick Connolly
 {~._.~}    HortResearch             Great minds discuss ideas;
 _( Y )_    Mt Albert                Average minds discuss events;
(:_~*~_:)   Auckland                 Small minds discuss people.
 (_)-(_)    New Zealand                                    .... Anon
            Ph: +64-9 925 7079

______________________________________________
R-help_at_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.
Received on Fri 04 Jul 2008 - 00:04:23 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 Fri 04 Jul 2008 - 00:31:40 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive