I am on Win7 OS with R 3.3.1 in Rstudio. Intention is to use glmnet
with parallel processing. From the ?glmnet
help:
parallel
: IfTRUE
, use parallel foreach to fit each fold. Must register parallel before hand, such asdoMC
or others. See the example below.
From the referenced example:
# Parallel
require(doMC)
registerDoMC(cores=4)
install.packages('doMC')
returns package is not available. Manually checking CRAN gives downloadable UNIX code but Windows binaries are not available.
Can I still use doMC
like code under my Win7 OS or what is a useful alternative?
As written in the vignette to
doMC
You can try to use the
snow
package and aSOCK
cluster instead. (Thx @HongOoi for the hint that loadingdoSNOW
is not really required.)