title: doParallel not returning anything in R
body: <p>Here is the structure of this section of my code:</p>
  
  <pre><code> x &lt;- foreach(i=1:n) %dopar%
   {
      #dostuff, n=32
  
      for(i in 1:m)
      {
         #do complicated stuff that results in a vector of m rows,m large
      }
   }
  </code></pre>
  
  <p>and I wish that x would then be a mxn matrix. It's super important that each core is given a subset of n because everything from there has to run sequentially. From that point they will run nearly the same speed but it is not assured.</p>
  
  <p>Unfortunately I get: Error in summary.connection(connection) : invalid connection</p>
  
  <p>For what it's worth, I'm fairly certain it's doing the (many!) operations. It takes about as long as I expect for various parameters outside of this section of code.</p>