Nothing
setCores <-
function(n) {
# Set number of CPU cores which will be used by the package
#
# n number of CPU cores
if (!missing(n)) {
if (is.numeric(n)) {
n <- as.integer(ceiling(n))
n <- .C('setNThreads', n = as.integer(n), PACKAGE = "HRTnomaly")$n
}
}
n <- 0L
crTot <- 0L
n <- .C('getNThreads', n = as.integer(n), PACKAGE = "HRTnomaly")$n
if (n == 1L) {
if (.Call("isOmp", PACKAGE = "HRTnomaly")) packageStartupMessage("Parallel computation will not perform. CPU cores in use: 1.")
}
else if (n > 1L){
crTot <- .C('getNCores', n = as.integer(crTot), PACKAGE = "HRTnomaly")$n
packageStartupMessage("Parallel computation will perform.")
packageStartupMessage(" Total CPU cores available: ", crTot, ".", sep = "")
packageStartupMessage(" CPU cores in use: ", n, ".", sep = "")
}
invisible(n)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.