From ripley at stats.ox.ac.uk  Mon Mar  6 14:12:48 2006
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Mon, 6 Mar 2006 13:12:48 +0000 (GMT)
Subject: [Rd] Bug or Feature in Rcmd build workaround workaround for
 paths in Cygwin tar
In-Reply-To: <84fc09fb0603060443l66f99771sf4627eb781bbf024@mail.gmail.com>
References: <84fc09fb0603060443l66f99771sf4627eb781bbf024@mail.gmail.com>
Message-ID: <Pine.LNX.4.64.0603061310290.11970@gannet.stats.ox.ac.uk>

On Mon, 6 Mar 2006, Michael Hoehle wrote:

> To R-devel,
>
> I am currently writing a package with R 2.2.1 under Windows using
> cygwin and the recommended Rtools. Physically my package ist hosted on
> the Drive z: .
>
> When I call Rcmd.exe build ?-binary for my package I have a problem
> with the "build" script in $R_HOME/bin/. Starting on line 226 the code
> is as follows:
>
> if($WINDOWS) {
> 	## workaround for paths in Cygwin tar
> 	$filepath =~ s+^([A-Za-x]):+/cygdrive/\1+;
> }
>
> Is there a particular reason that only lower case letter from a-x are
> handled? As my drive is z:  I would like the workaround to work for
> lower case letters a-z.

So edit the file and it should work.  (Something is a little strange, as 
Windows has drive letters in upper case.)

You may need to edit check as well as build.

-- 
Brian D. Ripley,                  ripley at 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] Bug or Feature in Rcmd build workaround workaround for paths in Cygwin tar
Prof Brian Ripley