title: Send function calls with different arguments to different processors in R using parallel package
body: <p>I am trying to use the parallel package in R to send four different function calls to four different processors but am really lost as to how to assign different cores to do different work.  I've read through the documentation for the parallel package, doParallel, Rmpi, and foreach in R.  I've seen many posts using mclapply for calling different functions with the same argument.  I'd like to call the same function with different arguments.</p>
  
  <p>This is pseudocode of what I'd like to accomplish:</p>
  
  <pre><code>BEGIN parallel (core)
  if(core == 1)
     foo(5, 4, 1/2, 3, "a")
  if(core == 2)
     foo(5, 3, 1/3, 1, "b")
  if(core == 3)
     foo(5, 4, 1/4, 1, "c")
  if(core == 4)
     foo(5, 2, 1/5, 0, "d")
  END parallel
  </code></pre>
  
  <p>This seems to be a perfect application to parallel computing since these four separate function calls can act independently to solve the problem I am working on.  I don't know how to do this in R though.</p>