是否可以使用 makeForkCluster 在不同的机器上创建 R 进程?

Is it possible to use makeForkCluster to create R processes in different machines?

"makeForkCluster uses the OS level fork call to create multiple identical R processes on the same machine with a copy of the master workspace"

但是...

是否可以使用makeForkCluster在不同的机器上创建R进程?

没有。这是它在您引用的帮助页面中所说的方式。 fork产生的进程必然运行在同一台电脑上。您可以使用 makePSOCKcluster(names, ...),其中 names 是机器名称的字符向量,以在不同机器上创建具有 R 进程的集群。