Dirk Eddelbuettel Dirk Eddelbuettel k 54 54 gold badges silver badges bronze badges. Because mclapply is a function that is recommended by hadley wickahm in he's newest book Advanced R.
But mclapply is now part of parallel. Whoever just downvoted does a not understand CRAN packages and b seems to know better than R Core which packages are needed.
Let me repeat: multicore is retired because it is subsumed in parallel. MarcinKosinski: Hadley says you're wrong over IM with me ; the book uses parallel::mclapply.
Sorry for trouble. My oversight. Show 2 more comments. Sign up or log in Sign up using Google. Sign up using Facebook.
Sign up using Email and Password. Update: The required packages are not yet now available on CRAN , but until they will get online, you can download them from here: REvolution foreach windows bundle Simply unzip the folders inside your R library folder.
If you are using R 2. So far, a solution is not found, except using REvolution R distribution, or using R 2. Updates will be given in case someone would come up with better solutions. Thanks to Tao Shi, there is now a solution to the problem. You'll need to download the revoIPC package from here: revoIPC package - download link required for running doSMP on windows Install the package on your R distribution, and follow all of the other steps detailed earlier in this post.
It will now work fine on R 2. Update 2 : Notice that I added, in the beginning of the post, a download link to all the packages required for running parallel foreach with R 2.
That is until they will be uploaded to CRAN. Hi Chris, Some additional background info. Under Windows and probably other OS too the OS will distribute a single thread's work across the available cores so each core does a fraction of the work; this is invisible to the user. Base R is still mostly single-threaded, but rstub mentions some notable exceptions.
So using mentioned packages could probably increase the already running multi core perfomance. This topic was automatically closed 7 days after the last reply. The environment from where global objects should be identified. This is also the case whenever multicore processing is not supported, e. Not all operating systems support process forking and thereby not multicore futures.
For instance, forking is not supported on Microsoft Windows.
0コメント