title: How do I run R in multiple machines?
body: <p>I followed <a href="https://stat.ethz.ch/R-manual/R-devel/library/parallel/html/makeCluster.html" rel="nofollow">this instruction</a> that uses <a href="https://stat.ethz.ch/R-manual/R-devel/library/parallel/html/makeCluster.html" rel="nofollow">makeCluster function</a> but it seems it doesn't work for windows</p>
  
  <pre><code>primary &lt;- '192.168.1.235'
  machineAddresses &lt;- list(
  list(host=primary,user='johnmount',
     ncore=4),
  list(host='192.168.1.70',user='johnmount',
     ncore=4)
  )
  
  spec &lt;- lapply(machineAddresses,
             function(machine) {
               rep(list(list(host=machine$host,
                             user=machine$user)),
                   machine$ncore)
             })
   spec &lt;- unlist(spec,recursive=FALSE)
  
  parallelCluster &lt;- parallel::makeCluster(type='PSOCK',
                                       master=primary,
                                       spec=spec)
  print(parallelCluster)
  </code></pre>