Another compatibility problem S => R

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
18 May 1998 16:52:04 +0200


palme@uni-wuppertal.de (Hubert Palme) writes:

> 
> Hello,
> 
> after the line 
> 
>   cat("%",as.character(as.name(match.call())), "\n%\n", file=fi, append=T)
> 
> R complains about
> 
>   Error in as.name(x) : character argument required

Hmm. The Splus help page says:

       as.name coerces x to an object of mode  "name".   This  is
       useful when x is of mode "character".

The whole construction seems to be doing the same as
deparse(match.call()), which works in *both* languages.

I don't think we want to become compatible in this case.

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