From tr@ver@c @end|ng |rom gm@||@com  Fri Oct  6 01:06:58 2023
From: tr@ver@c @end|ng |rom gm@||@com (Travers Ching)
Date: Thu, 5 Oct 2023 16:06:58 -0700
Subject: [Rd] Bug report: parLapply with capture.output(type="message")
 produces an error
Message-ID: <CAPLMX9Ey2=3p9C=5nsSyOQjJjz5oWherbSJ3+VO72WHLjSY7kw@mail.gmail.com>

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]]



[Rd] Bug report: parLapply with capture.output(type="message") produces an error
Travers Ching