How to install a multi-core package on R v3.1.2?

I use the default command to install the package multicore

install.packages('multicore','http://www.rforge.net/')

as written here http://www.rforge.net/multicore/files/ , but I get a warning:

install.packages ('multicore', ' http://www.rforge.net/ ') Warning in install.packages packages: 'lib = " http://www.rforge.net/ "' is not writable Instead Do you want to use a personal library? (y / n) y Warning in install.packages packages: package 'multicore is not available (for version R 3.1.2)

Does anyone know a solution? I cannot use previous versions of R. I would like to use the function mclapplyfrom this package.

Thanks for the help.

My session info:

> sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-redhat-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] stringi_0.4-1 ggplot2_1.0.0

loaded via a namespace (and not attached):
 [1] colorspace_1.2-4 digest_0.6.8     grid_3.1.2       gtable_0.1.2    
 [5] MASS_7.3-35      munsell_0.4.2    plyr_1.8.1       proto_0.3-10    
 [9] Rcpp_0.11.3      reshape2_1.4.1   scales_0.2.4     stringr_0.6.2   
[13] tools_3.1.2 
+4
source share
1 answer

Why do you need this?

Most of its functions have been integrated into the package parallelthat already comes with R. Look at your vignette, for example, inside R via vignette()or from here .

And the reason you cannot install "multicore" is because it was removed by R Core, given how its functionality (essentially completely) is now "parallel."

+21
source

Source: https://habr.com/ru/post/1570864/


All Articles