I noticed that R does not use my entire processor, and I want to increase it tremendously (up to 100%). I do not want it to simply parallelize several functions; I want R to use more resources of my processor. I am trying to run a clean IP packet packing program using the lp () function. I am currently running windows and I have 4 cores on my computer.
I tried to experiment with snow, doParallel and foreach (although I donβt know what I do with them).
In my code, I have this ...
library(foreach) library(doParallel) library(snowfall) cl <- makeCluster(4) registerDoParallel(cl) sfInit(parallel = TRUE, cpus = 4)
R is stuck and running lp () for a very long time. My processor is about 25%, but how can I increase it?
source share