Nothing
# Copyright (c) 2023, Avraham Adler All rights reserved
# SPDX-License-Identifier: BSD-2-Clause
# Get the number of threads Delaporte will request in its parallel regions.
# This is package-local state (see zzz.R); it neither queries nor is affected by
# the process-global OpenMP settings of other packages.
getDelapThreads <- function() {
get("DelapThreads", envir = DelaporteEnv)
}
setDelapThreads <- function(n) {
n <- as.integer(floor(n[[1L]]))
if (is.na(n) || n <= 0L) {
stop("Number of threads must be > 0.")
}
ncpus <- get("DLPCPU", envir = DelaporteEnv)
if (!is.na(ncpus) && n > ncpus) {
message("Capping at system maximum of ", ncpus, ".")
n <- ncpus
}
assign("DelapThreads", n, envir = DelaporteEnv) # nolint object_name_linter
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.