Re: R-beta: R rules!

Thomas Lumley (thomas@biostat.washington.edu)
Tue, 21 Oct 1997 09:27:06 -0700 (PDT)


Date: Tue, 21 Oct 1997 09:27:06 -0700 (PDT)
From: Thomas Lumley <thomas@biostat.washington.edu>
To: Bill Simpson <wsimpson@uwinnipeg.ca>
Subject: Re: R-beta: R rules!
In-Reply-To: <Pine.OSF.3.95.971021104533.13188A-100000@io.uwinnipeg.ca>

On Tue, 21 Oct 1997, Bill Simpson wrote:

> I installed R in the directory
> /usr/local/bin/R-0.50-a4/
> Not sure if this is a sensible set-up.

It's probably better not to put the whole source tree in /usr/local/bin/,
which is where programs live.  It doesn't really matter, but I would
suggest /usr/local/R-0.50-a4 or /usr/local/src/R-0.50-a4
 
> Then I copied the shell script R (shows up in directory of
> /usr/local/bin/R-0.50-a4/
> as
> R*
> not as R

This means that it is an executable file called R, exactly what you want
>)
> as suggested to
> /usr/local/bin/R
> 
> Typing R works if I cd to /usr/local/bin/R.  But if I am elsewhere it
> doesn't work.  Is there a way (like MSDOS path) to set it up so that I can
> be anywhere and type R to invoke it?

Do you mean that you copied the R file to the directory /usr/local/bin/R/?
If so, that is the problem.  You should have copied the file to the
directory /usr/local/bin/ using a command like

	% cp /usr/local/bin/R-0.50-a4/bin/R /usr/local/bin/R

The directory /usr/local/bin/ is almost certainly in your path, but
/usr/local/bin/R/ will not be.  You can set your path, which is an
environment variable. The details depend on which shell you use. The
command is setenv for the tcsh shell.


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=