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

From: Ted Harding <>
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

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


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

Hoping this helps,

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

______________________________________________ mailing list PLEASE do read the posting guide 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 Please read the posting guide before posting to the list.

list of date sections of archive