Posts Tagged ‘ flush ’

R: directing output to file on the fly, output flushing

May 4, 2010

To start sending all output to a file, do this:sink("path/to/filename") # Direct all output to file print("Hi there") # Will be printed to file sink() # Turn off buffing to fileRelated to this I recently had to use:flush.console()This forces your console to print out any buffered content. Doing this will cost time, but if you are running

Read more »