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

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Wed 25 Aug 2004 - 04:44:24 EST


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



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

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