output of R.version platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status major 1 minor 9.1 year 2004 month 06 day 21 language R 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
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 > >
> From: Prof Brian Ripley > > On Tue, 24 Aug 2004, Peter Kleiweg wrote: > > > Liaw, Andy schreef: > > > > > This is _not_ a bug. Please read `R Language Manual', > section 4.3.2 > > > > I don't have the `R Language Manual'. Is it explained somewhere > > in the docs that come with R? > > Amongst the docs that come with R is the `R Language > Definition' manual.Maybe it would be a good idea to make the menu entries under Help/Manuals in Rgui on Windows correspond to the actual titles of the manuals? Best, Andy> File doc/manual/R-lang.texi, before processing. People are > quoting the > section numbers in the HTML/PDF conversion. > > -- > Brian D. Ripley, ripley@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 > > ______________________________________________ > R-devel@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > >