Bug or Feature in Rcmd build workaround workaround for paths in Cygwin tar

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug or Feature in Rcmd build workaround workaround for paths in Cygwin tar

Michael Hoehle
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.

Best regards,

Michael Höhle

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: Bug or Feature in Rcmd build workaround workaround for paths in Cygwin tar

Brian Ripley
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,                  [hidden email]
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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel