From p.dalgaard@biostat.ku.dk  Fri Mar 30 23:46:29 2001
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 31 Mar 2001 00:46:29 +0200
Subject: [Rd] User defined assignment function ignores argument names (PR#888)
In-Reply-To: jhallman@frb.gov's message of "Fri, 30 Mar 2001 23:03:10 +0200 (MET DST)"
References: <200103302103.XAA17985@pubhealth.ku.dk>
Message-ID: <x2d7aykh8a.fsf@blueberry.kubism.ku.dk>

jhallman@frb.gov writes:

> "boink<-" <- function(x, a = 1, b = 2, value){
>     print(match.call())
>     x
> }
> 
> > z <- 1
> > boink(z, b = 4) <- 22
> boink<-(x = *tmp*, a = 4, value = 22)
> >
>      
> Shouldn't it have matched the 4 to b, not a?

Yes. Fixed for 1.2.3

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] User defined assignment function ignores argument names (PR#888)
Peter Dalgaard BSA