Re: [R] [OT] Linux/UNIX question

From: Ted Harding <Ted.Harding_at_manchester.ac.uk>
Date: Wed, 20 Feb 2008 22:14:41 +0000 (GMT)


On 20-Feb-08 21:51:54, Edna Bell wrote:
> Dear R Gurus:
>
> I'm trying to find R on another Linux system.
>
> I'm using the find command, (surprise), but I only want to see the
> output where it exists, not all of the other stuff.
>
> Is there an option that I could select, please?
>
> Right now I have
>
> find / -name R
>
> TIA,
> Sincerely,
> Edna

It depends on precisely what you want to find. If you just want to locate the command "R" to run R, then, assuming that when you're logged in your $PATH contains what it should, the command

  which R

should find it for you. E.g.:

$ which R
/usr/bin/R

You may well find that your 'find' command generates a stream of "permission denied" messages. Since these emerge on the "stderr" channel (No 2) rather than on "stdout" (No 1), you can do

find / -name R 2>/dev/null

However, since all the R libraries have a subdirectory called R, you can still get a lot of output. But maybe you want that, in this case ... !

Basically, though, if R is there the main "R" command will be at /usr/bin/R, and the libraries will be at /usr/lib/R.

You will also find an apparently identical "R" command at

/usr/lib/R/bin/R

but this is simply a symbolic link to /usr/bin/R

Hoping this helps,
Ted.



E-Mail: (Ted Harding) <Ted.Harding_at_manchester.ac.uk> Fax-to-email: +44 (0)870 094 0861
Date: 20-Feb-08                                       Time: 22:14:35
------------------------------ XFMail ------------------------------

______________________________________________
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 Wed 20 Feb 2008 - 22:27:18 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 Thu 21 Feb 2008 - 12:30:15 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