diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2020-11-04 09:15:23 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2020-11-04 09:15:23 +0100 |
commit | 9ce12eaeb40fc3b70cee39e679f120fcdf7e4696 (patch) | |
tree | bc8f4fc6ae9c615bdc901c30494f6062d21590ba | |
parent | 96c8558842e2494f42c0e148fb8d8f422000ecde (diff) |
Deprecate cores > 1 in saemix_model
-rw-r--r-- | R/saemix.R | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |