title: How can I get R to use more CPU usage?
body: <p>I noticed that R doesn't use all of my CPU, and I want to increase that tremendously (upwards to 100%). I don't want it to just parallelize a few functions; I want R to use more of my CPU resources. I am trying to run a pure IP set packing program using the lp() function. Currently, I run windows and I have 4 cores on my computer.</p>
  
  <p>I have tried to experiment with snow, doParallel, and foreach (though I do not know what I am doing with them really). </p>
  
  <p>In my code I have this...</p>
  
  <pre><code>library(foreach)
  library(doParallel)
  library(snowfall)
  
  cl &lt;- makeCluster(4)
  registerDoParallel(cl)
  
  sfInit(parallel = TRUE, cpus = 4)
  
  
  #code that is taking a while to run but does not involve simulations/iterations
  
  lp (......, all.int = TRUE)
  
  sfStop()
  </code></pre>
  
  <p>R gets stuck and runs lp() for a very long time. My CPU is around 25%, but how can I increase that? </p>