From p.dalgaard@pubhealth.ku.dk  Mon Mar  5 21:20:10 2001
From: p.dalgaard@pubhealth.ku.dk (Peter Dalgaard BSA)
Date: 05 Mar 2001 22:20:10 +0100
Subject: [Rd] Context problem with ... and rbind (PR#860)
In-Reply-To: Peter Dalgaard BSA's message of "04 Mar 2001 23:53:34 +0100"
References: <200103032056.VAA13487@pubhealth.ku.dk> <x23dctbvd8.fsf@blueberry.kubism.ku.dk> <x28zml2mt6.fsf@blueberry.kubism.ku.dk> <x266hp4041.fsf@blueberry.kubism.ku.dk>
Message-ID: <x2pufvj4l1.fsf@blueberry.kubism.ku.dk>


OK, I decided that it was definitely better than the original this
way. Committed for 1.3.0.

Peter Dalgaard BSA <p.dalgaard@pubhealth.ku.dk> writes:

> diff -u -r1.85 coerce.c
> --- src/main/coerce.c   2001/01/15 14:52:09     1.85
> +++ src/main/coerce.c   2001/03/04 22:46:27
> @@ -1749,11 +1749,13 @@
>      if (isNull(el))
>         return el;
>      if (CAR(el) == R_DotsSymbol) {
> -       h = findVar(CAR(el), rho);
> +       h = findVarInFrame(rho, CAR(el));
>         if (h == R_NilValue)
>             return substituteList(CDR(el), rho);
>         if (TYPEOF(h) != DOTSXP) {
> -           if (h == R_MissingArg)
> +           if (h == R_UnboundValue)
> +               return el;
> +           if( h == R_MissingArg)
>                 return substituteList(CDR(el), rho);
>             error("... used in an incorrect context");
>         }

-- 
   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] Context problem with ... and rbind (PR#860)
Peter Dalgaard BSA