verbosePrint {utilitiesR} | R Documentation |
output to screen, with a flush.console
verbosePrint(...)
... |
fed in to |
This function calls flush.console
after printing out the message, so that (for example) in
heavy-processing loops containing per-loop messages, the
console is always kept up-to-date (as opposed to spewing
out all the messages at the end of the loop).
verbosePrintf
Other debug: printf
, stopf
,
tryCatch.W.E
, verbosePrintf
,
warningf
## Not run: # demonstrating the 'flush.console()': try: for ( i in 1:10 ) { message(i) A <- runif(10000000); } # Notice how the messages all get output all at once at the end of the loop. # (You may need to play with the number in `runif`) # This is due to the `runif` being processor-heavy. # Now try: for ( i in 1:10 ) { verbosePrint(i) # Like saying message(i); flush.console() A <- runif(10000000); } # Note how the messages appear in real-time now. ## End(Not run)