[R] Issue with message()

Duncan Murdoch murdoch.duncan at gmail.com
Mon Apr 23 01:04:44 CEST 2012


On 12-04-22 5:36 PM, Axel Urbiz wrote:
> Dear List,
>
> I built a package under both Mac and Win 7 (both on R 2.12.0) . One of the
> functions in the package is set up to print a status message using the code
> below:
>
>   if (verbose)
>        if ((i %% 10) == 0&&  i<  ntree) message( "", i, "out of", ntree,
> "trees so far...")
>
> This works perfectly on the Mac. However, on Win 7 the message is not
> printed while the function is executing, but all when it finished running.
> Any hint what might be the issue?
>

Buffered output.  Use Ctrl-W or menu item Misc|Buffered output to change it.

Duncan Murdoch



More information about the R-help mailing list