[Rd] function bug (PR#7199)

Richard Morey morey at banta.psyc.missouri.edu
Tue Aug 24 20:48:13 CEST 2004


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 at 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 at 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



More information about the R-devel mailing list