R: directing output to file on the fly, output flushing
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 file
Related to this I recently had to use:
flush.console()
This forces your console to print out ... [Read more...]