Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
静默并行::makePSOCKcluster(…,outfile=";)_R_Parallel Processing - Fatal编程技术网

静默并行::makePSOCKcluster(…,outfile=";)

静默并行::makePSOCKcluster(…,outfile=";),r,parallel-processing,R,Parallel Processing,我想使用parallel::makePSOCKcluster(…,outfile=“”)显示工作进程的输出,还想隐藏“起始工作进程”消息。这可能吗?目前,我得到: > library(parallel) > sink("/dev/null") > cluster = makePSOCKcluster(4, outfile = "") starting worker pid=6695 on localhost:11111 at 17:31:50.015 starting work

我想使用
parallel::makePSOCKcluster(…,outfile=“”)
显示工作进程的输出,还想隐藏“起始工作进程”消息。这可能吗?目前,我得到:

> library(parallel)
> sink("/dev/null")
> cluster = makePSOCKcluster(4, outfile = "")
starting worker pid=6695 on localhost:11111 at 17:31:50.015
starting worker pid=6703 on localhost:11111 at 17:31:50.240
starting worker pid=6711 on localhost:11111 at 17:31:50.467
starting worker pid=6724 on localhost:11111 at 17:31:50.698

不,如果不修改
parallel
包,就无法避免这些消息。
.slaveRSOCK
功能始终使用
cat
显示该消息,因此如果指定
outfile=“”
,您将始终看到这些消息