R/zzz.R

Defines functions .onAttach .onLoad

.onLoad <- function(lib, pkg) {
       .C('setNumSlaves', n = as.integer(1L), PACKAGE = "spMC")
}

.onAttach <- function(lib, pkg) {
       if (.Call("isOmp", PACKAGE = "spMC")) {
           packageStartupMessage("Package built with openMP.")
       }
       else {
           packageStartupMessage("Package built without openMP.")
       }
       nn <- setCores()
       if (nn > 0L) packageStartupMessage("Use the function setCores() to change the number of CPU cores.")
}

Try the spMC package in your browser

Any scripts or data that you put into this service are public.

spMC documentation built on May 3, 2023, 9:13 a.m.