[R] using fix()

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Sun Jan 9 21:22:17 CET 2000

"Tony Q. Zhang" <zha at merlin.engr.ucf.edu> writes:

>   I guess this may be well-known question, but I did search through the
> mail archive without finding the answer. so please forgive me asking.
>   My problem is that I cannot use fix() to edit function. If I use
> fix(my.fun), then, it will give a "object my.fun not found" error. I have
> to use my.fun <- function() {} first whenever I want to start a new
> function, which is annoying. How can I make the fix() behave like in
> splus?

Actually, I don't recall seeing others complaining about this...

However, you can just fix(fix) and change the else clause to be


instead of giving off the error message.

   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