[R-SIG-Mac] /bin/sh: tar: command not found

Steve Revilak steve at srevilak.net
Sat Oct 4 02:43:27 CEST 2008


> From: "[Ricardo Rodriguez] Your XEN ICT Team" <webmaster at xen.net>
> Date: Fri, 03 Oct 2008 23:08:16 +0200
> Subject: Re: [R-SIG-Mac] /bin/sh: tar: command not found

> Hi Ben, Andrew,
>
> I am facing the same problem (R 2.7.2 running on Mac OS X 10.5.5 Build 9F33; 
> MacBook Pro Intel Core 2 Duo, 2.5 GHz); tar is in the path...
>
> GMXUX-Ricardo-Rodriguez:~ rrodriguez$ tar
> tar: You must specify one of the `-Acdtrux' options
> Try `tar --help' or `tar --usage' for more information.

   [...]

> Here an error. This installation usually does work...

   [...]

> ==================================================
> downloaded 92 Kb
>
> /bin/sh: tar: command not found

It seems as though tar is in bash's PATH, but not R's PATH.  How are
you starting R?

If you're starting R by clicking R.app, you might try running 
"open /Applications/R.app" from a terminal instead.  This way, open inherits
PATH from bash, and R.app will inherit PATH from open.



More information about the R-SIG-Mac mailing list