I am using the parallel
package to have each core perform the same function on a chunk of data.
For debugging purposes I would like to be able to print variable contents to a file for each core, or anything similar that might help me locate and correct a coding mistake...
I tried to include cat(variable,filepath,append=TRUE)
at the level of the function that would be executed by each worker. However, the variable's contents do not appear in the file once execution is finished.