From ripley at stats.ox.ac.uk  Mon Jun 16 09:33:58 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Mon, 16 Jun 2008 08:33:58 +0100 (BST)
Subject: [Rd] c.noquote() weirdness
In-Reply-To: <200806160857.41265.Ray.Brownrigg@mcs.vuw.ac.nz>
References: <200806160857.41265.Ray.Brownrigg@mcs.vuw.ac.nz>
Message-ID: <alpine.LFD.1.10.0806160828500.19791@gannet.stats.ox.ac.uk>

Yes, it is misusing the ... argument to NextMethod.  The first two 
arguments to c() match the first two arguments to NextMethod, the rest are 
set as additional arguments.

Will fix for 2.7.1RC shortly.  Thanks for the report.

On Mon, 16 Jun 2008, Ray Brownrigg wrote:

> I haven't been able to get anywhere tracking this down.  It seems that c.noquote() does
> something strange with its third (and subsequent) parameters:
>
> R-2.7.0 under NetBSD, R-2.6.0 under Solaris, and R-2.8.0 (unstable) (2008-06-10 r45893)
> under WinXP, I get:
>
>> c(noquote('z'), 'y', 'x', '*')
> [1] z y x * x *
>>
>
> or:
>> c(noquote('z'), 'y', '***', letters)
> [1] z   y   *** a   b   c   d   e   f   g   h   i   j   k   l   m   n   o   p
> [20] q   r   s   t   u   v   w   x   y   z   *** a   b   c   d   e   f   g   h
> [39] i   j   k   l   m   n   o   p   q   r   s   t   u   v   w   x   y   z
>>
>
> Again, I am only the messenger (so don't shoot me :-)).
>
> Regards,
> Ray Brownrigg
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
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] c.noquote() weirdness
Prof Brian Ripley