https://github.com/cran/multicore
Revision ec9d1d46bb7ced7158352ec015668ea0eb463df3 authored by CRAN team on 17 May 2014, 00:00 UTC, committed by Gabor Csardi on 17 May 2014, 00:00 UTC
1 parent 3ea66bd
Raw File
Tip revision: ec9d1d46bb7ced7158352ec015668ea0eb463df3 authored by CRAN team on 17 May 2014, 00:00 UTC
version 0.2
Tip revision: ec9d1d4
zzz.R
volatile <- new.env(TRUE, emptyenv())

detectCores <- parallel::detectCores
.onLoad <- function(libname, pkgname) {
  cores <- detectCores()
  volatile$detectedCoresSuccess <- !is.na(cores)
  if (is.na(cores)) cores <- 2L # a fallback expecting higher-end desktop ...
  volatile$detectedCores <- cores
}
.onAttach <- function(libname, pkgname)
    packageStartupMessage("WARNING: multicore has been superseded and will be removed shortly")

children <- parallel:::children
collect <- mccollect
exit <- parallel:::mcexit
fork <- parallel:::mcfork
kill <- parallel:::mckill
parallel <- mcparallel
processID <- parallel:::processID
back to top