[Rd] [DOC] as.call (PR#1437)

p.dalgaard@biostat.ku.dk p.dalgaard@biostat.ku.dk
Fri, 5 Apr 2002 17:28:03 +0200 (MET DST)


While I remember this:

The help page for call/as.call/is.call says

     It is not possible to coerce objects to mode call (objects either
     are calls or they are not calls).  `as.call' returns its argument
     if it is a call and otherwise terminates with an error message.

which actually has been untrue for quite a while, e.g.:

> cl<-as.call(c(ls, list("package:base", pattern="obj")))
> eval(cl)
[1] "is.object"    "objects"      "object.size"  "objWithClass"

Someone changed the code without editing the documentation. I know who
the guilty party is and will force him to rewrite the help entry in
due course...

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