[R] R CMD build produces tar error under FreeBSD 5.4
Andrew Robinson
A.Robinson at ms.unimelb.edu.au
Sun Sep 25 13:58:32 CEST 2005
On Sun, Sep 25, 2005 at 12:07:02PM +0100, Prof Brian Ripley wrote:
> On Sun, 25 Sep 2005, Andrew Robinson wrote:
>
> > I have constructed a package using package.skeleton(), when I try
> >
> > $ R CMD build foo
> > * checking for file 'foo/DESCRIPTION' ... OK
> > * preparing 'foo':
> > * checking DESCRIPTION meta-information ... OK
> > * cleaning src
> > * removing junk files
> > tar: Option -L is not permitted in mode -x
> > Error: cannot open file 'foo/DESCRIPTION' for reading
> >
> > foo/DESCRIPTION exists and the permissions are correct. The same
> > command works under Linux Fedora 2. The man pages on each OS imply
> > that tar differs across the two platforms. Does anyone have any
> > thoughts on a work-around?
>
> No, because R does not use tar -L (which is to do with tape lengths on GNU
> tar).
>
> It does use tar chf and tar xhf. The h modifier would appear to be
> applicable only to dumps, so at a wild guess the error message means -h is
> not permitted. Try replacing xhf by xf.
Yes, that works. For the record: I removed the 'h' options from all
tar calls in
/usr/local/lib/R/bin/build
Thanks for your speedy and accurate response.
Andrew
--
Andrew Robinson
Senior Lecturer in Statistics Tel: +61-3-8344-9763
Department of Mathematics and Statistics Fax: +61-3-8344-4599
University of Melbourne, VIC 3010 Australia
Email: a.robinson at ms.unimelb.edu.au Website: http://www.ms.unimelb.edu.au
More information about the R-help
mailing list