RE: [Rd] function bug (PR#7199)

From: Richard Morey <morey_at_banta.psyc.missouri.edu>
Date: Wed 25 Aug 2004 - 04:48:13 EST


Ok, thanks.

On Tue, 24 Aug 2004, Liaw, Andy wrote:

> This is _not_ a bug. Please read `R Language Manual', section 4.3.2 (as
> well as the R FAQ on what constitute a bug).
>
> Andy
>
> > From: morey@banta.psyc.missouri.edu
> >
> > The following code prints [1] 2, as it should
> >
> > temp<-function(ab,...){
> > print(ab)
> > }
> > temp(2,s=3)
> >
> > However, this code prints [1] 3:
> >
> > temp<-function(sb,...){
> > print(sb)
> > }
> > temp(2,s=3)
> >
> > It should still print [1] 2. It appears
> > that if a variable in ... begins with the same letter as
> > another variable,
> > the value in the variable in ... overwrites the value in the
> > variable with
> > the same first letter.
> >
> > I didn't see this bug reported elsewhere.
> >
> > Richard Morey
> >
> > --
> > Richard Morey
> > Graduate Research Assistant, Cognition and Neuroscience
> > University of Missouri-Columbia
> >
> > ______________________________________________
> > R-devel@stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-devel
> >
> >
>
>
> ------------------------------------------------------------------------------
> Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system.
> ------------------------------------------------------------------------------
>

-- 
Richard Morey
Graduate Research Assistant, Cognition and Neuroscience
University of Missouri-Columbia

______________________________________________
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed Aug 25 04:55:50 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 08:59:23 EST