I solved this problem using Sys.getpid() function. zz <- file(paste(cmd_args[7],Sys.getpid(),".txt",sep=""), "at") write(rr,file=zz) close(zz)
-- View this message in context: http://r.789695.n4.nabble.com/Saving-data-into-a-text-or-CSV-file-using-foreach-doSNOW-tp3683155p3690132.html Sent from the R devel mailing list archive at Nabble.com. ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel