From ripley at stats.ox.ac.uk  Tue Mar 16 23:17:55 2004
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue Mar 16 23:18:02 2004
Subject: [Rd] cygwin tar?
In-Reply-To: <002e01c40b85$1a42d540$0c00a8c0@rodan>
Message-ID: <Pine.LNX.4.44.0403162208320.12133-100000@gannet.stats>

No tar utility comes with MinGW!  If you follow the instructions, you were 
asked to put the tools from my Rtools.zip at the front of your path.
It seems that you didn't do so.

Please don't expect support for configurations that are explicitly 
unsupported.

On Tue, 16 Mar 2004, Jeff D. Hamann wrote:

> I've been attempting to create a new R package and recently removed the
> cygwin installation from my machine since R requires the use of the MingW
> tools for building an R package with C code. However, when I tried to build
> a source package, I found the following results:
> 
> 
> * removing junk files
> * building 'Rconifers_0.7-1.tar.gz'
> tar: /cygdrive/C/usfs/psw_redding/software/current/Rconifers_0.7-1.tar:
> Cannot open: No such file or directory
> tar: Error is not recoverable: exiting now
> tar: /cygdrive/C/usfs/psw_redding/software/current/Rconifers_0.7-1.tar:
> Cannot open: No such file or directory
> tar: Error is not recoverable: exiting now
> tar: /cygdrive/C/usfs/psw_redding/software/current/Rconifers_0.7-1.tar:
> Cannot open: No such file or directory
> tar: Error is not recoverable: exiting now
> Rconifers_0.7-1.tar: No such file or directory
> 
> 
> C:\usfs\psw_redding\software\current>
> 
> which looks like the cygwin path is hard coded into the build script for the
> rcmd. I found the
> 
>  if($WINDOWS) {
>      ## workaround for paths in Cygwin tar
>      $filepath =~ s+^([A-Za-x]):+/cygdrive/\1+;
>  }
> 
> in the build script and don't think it needs to be there since you can use
> the tar utility that comes with mingw, yes? I replaced the previous chunk of
> code with:
> 
>  if($WINDOWS) {
>      ## workaround for paths in Cygwin tar
>      $filepath =~ s+^([A-Za-x]):+/\1+;
>  }
> 
> which has solved the problem. I just don't know how to get this into the
> latest build or release of R?


-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] cygwin tar?
Prof Brian Ripley