The makeCluster
outfile=""
option doesn't work with Rgui on Windows because Rgui doesn't send output from child processes to the display window. However, outfile=""
does work with the Rterm program because it's a simple console program:
C:\Program Files\R\R-3.0.2\bin\i386> rterm -q
> library(parallel)
> clust <- makeCluster(4, outfile="")
starting worker pid=1596 on localhost:11862 at 09:13:30.005
starting worker pid=1192 on localhost:11862 at 09:13:30.342
starting worker pid=1616 on localhost:11862 at 09:13:30.679
The "starting worker" messages are coming from the worker processes just before they execute the slaveLoop
function. You should also see output from the workers from executing tasks:
> clusterEvalQ(clust, message("hello"))
hello
hello
hello
hello
[[1]]
NULL
[[2]]
NULL
[[3]]
NULL
[[4]]
NULL