aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2020-11-04 09:15:23 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2020-11-04 09:15:23 +0100
commit9ce12eaeb40fc3b70cee39e679f120fcdf7e4696 (patch)
treebc8f4fc6ae9c615bdc901c30494f6062d21590ba /R
parent96c8558842e2494f42c0e148fb8d8f422000ecde (diff)
Deprecate cores > 1 in saemix_model
Diffstat (limited to 'R')
-rw-r--r--R/saemix.R8
1 files changed, 5 insertions, 3 deletions
diff --git a/R/saemix.R b/R/saemix.R
index 85338ebd..ae534daa 100644
--- a/R/saemix.R
+++ b/R/saemix.R
@@ -11,8 +11,10 @@
#' variances of the deviations of the parameters from these mean values.
#'
#' @param object An mmkin row object containing several fits of the same model to different datasets
-#' @param cores The number of cores to be used for multicore processing.
-#' On Windows machines, cores > 1 is currently not supported.
+#' @param cores The number of cores to be used for multicore processing. Using
+#' more than 1 core is experimental and may lead to uncontrolled forking,
+#' apparently depending on the BLAS version used. On Windows machines, cores
+#' > 1 is currently not supported.
#' @rdname saemix
#' @importFrom saemix saemixData saemixModel
#' @importFrom stats var
@@ -61,7 +63,7 @@
#' }
#' @return An [saemix::SaemixModel] object.
#' @export
-saemix_model <- function(object, cores = parallel::detectCores()) {
+saemix_model <- function(object, cores = 1) {
if (nrow(object) > 1) stop("Only row objects allowed")
mkin_model <- object[[1]]$mkinmod

Contact - Imprint