From morey at banta.psyc.missouri.edu  Tue Aug 24 20:30:49 2004
From: morey at banta.psyc.missouri.edu (morey@banta.psyc.missouri.edu)
Date: Tue Aug 24 20:30:51 2004
Subject: [Rd] function bug (PR#7199)
Message-ID: <20040824183049.74B1F10483@slim.kubism.ku.dk>


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


[Rd] function bug (PR#7199)
morey@banta.psyc.missouri.edu