[Rd] Bug report: parLapply with capture.output(type="message") produces an error
Travers Ching
tr@ver@c @end|ng |rom gm@||@com
Fri Oct 6 01:06:58 CEST 2023
Hello, I have tested this on a fresh ubuntu image with R 4.3.1.
Rscript -e 'library(parallel)
cl = makeCluster(2)
x = parLapply(cl, 1:100, function(i) {
capture.output(message("hello"), type = "message")
})
print("bye")'
This produces the following output:
[1] "bye"
Error in unserialize(node$con) : error reading from connection
Calls: <Anonymous> ... doTryCatch -> recvData -> recvData.SOCKnode ->
unserialize
Execution halted
Error in unserialize(node$con) : error reading from connection
Calls: <Anonymous> ... doTryCatch -> recvData -> recvData.SOCKnode ->
unserialize
Execution halted
The error does not occur interactively or if stopCluster gets called at the
end.
[[alternative HTML version deleted]]
More information about the R-devel
mailing list