[R] How top print intermediate values from inside a function?

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Tue Nov 26 01:12:56 CET 2002

Ravi Varadhan <rvaradha at jhsph.edu> writes:

> Hi:
> I tried both "print(mh.new)" and "cat(mh.new)", but the results are 
> displayed only after all the computations inside the function are 
> completed.  Is there a way to display the intermediate variable 
> immediately after it is evaluated?

Windows, right? There's a checkbox for "buffered output" or something
like that in the menus. Uncheck it.

   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