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

后端 未结 2 1260
萌比男神i
萌比男神i 2020-11-30 00:53

If I call a function using parSapply then print, message or cat statements inside that function don\'t seem to output to

2条回答
  •  旧巷少年郎
    2020-11-30 01:52

    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.

提交回复
热议问题