[R] options$error

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Tue Jun 6 12:33:01 CEST 2000


stefano <stecalza at tin.it> writes:

> Hi all,
> if I do, options(error=dump.frames) (pag. 185 S-programming) I get an
> error message: error parameter invalid. Where I'm doing wrong?
> I use R 1.0.1 on a Linux box (redhat 6.2).

dump.frames is a function in R, options("error") is an expression. 

Use   options(error=quote(dump.frames())) to get what you want.

Hmmm... I wonder if we should rename dump.frames to dumpframes
and set dump.frames <- quote(dumpframes()) to get the same syntax as
in S ?

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list