R-beta: R rules!

Thomas Lumley thomas at biostat.washington.edu
Tue Oct 21 18:27:06 CEST 1997


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 at stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



More information about the R-help mailing list