I am a long-time Mac user. R is way behind on that platform, which is one reason why I decided to try out Linux on intel. I have the system set up and have installed R (using Slackware, which is only distribution my tech services wants me to use). It went very smoothly, thanks everyone behind R! I installed R in the directory /usr/local/bin/R-0.50-a4/ Not sure if this is a sensible set-up. Then I copied the shell script R (shows up in directory of /usr/local/bin/R-0.50-a4/ as R* not as R) 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? Thanks very much for any help. Bill Simpson =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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 RThis 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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Bill Simpson <wsimpson at uwinnipeg.ca> writes:> I am a long-time Mac user. R is way behind on that platform, which is one > reason why I decided to try out Linux on intel. I have the system set up > and have installed R (using Slackware, which is only distribution my tech > services wants me to use). It went very smoothly, thanks everyone behind > R!You might want to suggest to your tech services people that they look at the RedHat or Debian distributions of Linux. Slackware is pretty ancient and not the greatest quality. Those who have used several different distributions generally feel that the package maintenance systems on both RedHat and Debian are superior to that on Slackware.> I installed R in the directory > /usr/local/bin/R-0.50-a4/ > Not sure if this is a sensible set-up.It would be more common to put it in something like /usr/local/lib/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) > 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?Yes, you should have a PATH environment variable and that should have /usr/local/bin listed in it. (MSDOS copied the idea from Unix, not the other way around). Try echo $PATH from the shell. It should look something like $ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/home/bates/bin If not, add /usr/local/bin to the PATH environment variable in .cshrc (if you use the C-shell) or in .profile for other shells. The syntax for the .profile file is like PATH=/usr/local/bin:$PATH export PATH -- Douglas Bates bates at stat.wisc.edu Statistics Department 608/262-2598 University of Wisconsin - Madison http://www.stat.wisc.edu/~bates/ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=