How can I `print` or `cat` when using parallel How can I `print` or `cat` when using parallel r r

How can I `print` or `cat` when using parallel


Using outfile param in makeCluster you can redirect the output to a file and then check that file to see how your program progresses.

Interestingly on a Linux machine setting it to "" outputs to the console, but that doesn't work for me on a Windows machine. File output works on both.


I am using makeCluster with outfile on Windows with doParallel package version 1.0.8. I'm able to tail outfile using a simple Powershell command powershell Get-Content c:/path/to/log/mylog.txt -wait. Works for me.