From morey at banta.psyc.missouri.edu  Tue Aug 24 20:48:13 2004
From: morey at banta.psyc.missouri.edu (Richard Morey)
Date: Tue Aug 24 20:48:22 2004
Subject: [Rd] function bug (PR#7199)
In-Reply-To: <3A822319EB35174CA3714066D590DCD504AF8294@usrymx25.merck.com>
Message-ID: <Pine.LNX.4.44.0408241348080.18254-100000@banta.psyc.missouri.edu>

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


[Rd] function bug (PR#7199)
Richard Morey