Re: [Rd] ???UNSURE??? Re: (PR#8363) R CMD INSTALL fails if cd prints

2005-12-07 Thread p . lijnzaad
On Monday 05 December 2005 14:28, Prof Brian Ripley wrote:
> >> What shells are these?
> >
> > Bash, mostly, but also ksh and zsh; sorry for not mentioning this.
>
> I still don't know what you did to be able to reproduce this (and I did
> ask).  

It turns ou that I was not quite correct regarding the cause of cd printing 
the 'new' directory. It is due to having the CDPATH set. If it is,
the POSIX standard requires 'cd' to print to stdout the new directory.
So to reproduce, run a bash  or ksh shell,  and do 

  CDPATH='.:..'   # a commonly used value for $CDPATH
  R CMD INSTALL SomePackage

> And as it is a shell script running under /bin/sh, it must be 
> whatever is masquerading as Bourne shell on your system(s) that is
> affected.

yes; it is fairly common for Linux systems to have have /bin/sh be a symlink 
to /bin/bash (which I'm not sure is always a good idea). But the issue will 
affect any POSIX-compliant shell.

> But it _is_ so required:
>
> http://www.opengroup.org/onlinepubs/009695399/utilities/cd.html

Sorry, I missed that. And I agree that it's the most logical thing to do when 
cd fails. 

> How old are `older SunOSes'?  Solaris 8 (which is 4 years old) is
> POSIX-compilant here, and I would be surprised if any from the last decade
> was not (at least with suitable paths set).

SunOS 5.7 (which admittedly is ancient; I can't find the year, google.com is 
currently unreachable for me) doesn't do it.

> Our philosphy is to assume that the users tools are standard (e.g. POSIX)
> unless there is widespread evidence to the contrary.  

The  INSTALL.in script already contains various '> /dev/null'; my patch just 
adds another two, inside the get_packages function, just to avoid any output 
that the cd-command might happen to have. I would not have thought this to be 
so controversial. Regards,

   Philip

-- 
Philip Lijnzaad
Genomics Laboratory
Dept. of Biomedical Genetics
University Medical Center (UMC), Utrecht
Stratenum room 2.201 (on Mondays and Thursdays not in after 14.45)
MSN chat (*NOT* email): [EMAIL PROTECTED]
P.O. Box 85060, 3508 AB Utrecht
(Universiteitsweg 100, 3584 CG Utrecht)
The Netherlands
tel: +31 (0)30 253 8464
fax: +31 (0)30 253 8479

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] typo in `eurodist'

2005-12-07 Thread Torsten Hothorn

R> attributes(eurodist)$Labels[9]
[1] "Gibralta"

should be `Gibraltar'.

Best,

Torsten

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] typo in `eurodist'

2005-12-07 Thread Prof Brian Ripley
I've often wondered about that.  I've presumed that the names were 
deliberate, so have you checked the stated source?  It's not readily 
available to me (as one would expect in Oxford)?

Does the original author know?

On Wed, 7 Dec 2005, Torsten Hothorn wrote:

> R> attributes(eurodist)$Labels[9]
> [1] "Gibralta"
>
> should be `Gibraltar'.

labels(eurodist) is clearer.

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
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, UKFax:  +44 1865 272595

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] typo in `eurodist'

2005-12-07 Thread torsten

On Wed, 7 Dec 2005, Prof Brian Ripley wrote:

> I've often wondered about that.

and the copy editor did too :-)

> I've presumed that the names were
> deliberate, so have you checked the stated source?  It's not readily
> available to me (as one would expect in Oxford)?

our library doesn't seems to have a copy of `The Cambridge
Encyclopaedia', so I can't check either. Google has 74.900 hits for
`Gibralta' (more than one would expect for a typo, I think)
and 57.700.000 for `Gibraltar'.

So maybe both spellings are in use.

Best,

Torsten

>
> Does the original author know?
>
> On Wed, 7 Dec 2005, Torsten Hothorn wrote:
>
> > R> attributes(eurodist)$Labels[9]
> > [1] "Gibralta"
> >
> > should be `Gibraltar'.
>
> labels(eurodist) is clearer.
>
> --
> Brian D. Ripley,  [EMAIL PROTECTED]
> 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, UKFax:  +44 1865 272595
>

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel