diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2021-04-21 13:11:47 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2021-04-21 13:11:47 +0200 |
commit | c74b79c983fe9fc872bac1262040e82f16049477 (patch) | |
tree | a071ede8d02b1e1db07527a14afb2313cba9f69e /R/mmkin.R | |
parent | 3a5463672c297b37c3c9135c8b144c48744c05d0 (diff) |
Version 1.0.4 published yesterdayv1.0.4
Diffstat (limited to 'R/mmkin.R')
-rw-r--r-- | R/mmkin.R | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -13,7 +13,8 @@ #' is only used when the \code{cluster} argument is \code{NULL}. On Windows #' machines, cores > 1 is not supported, you need to use the \code{cluster} #' argument to use multiple logical processors. Per default, all cores -#' detected by [parallel::detectCores()] are used. +#' detected by [parallel::detectCores()] are used, except on Windows where +#' the default is 1. #' @param cluster A cluster as returned by \code{\link{makeCluster}} to be used #' for parallel execution. #' @param \dots Further arguments that will be passed to \code{\link{mkinfit}}. @@ -75,7 +76,7 @@ #' #' @export mmkin mmkin <- function(models = c("SFO", "FOMC", "DFOP"), datasets, - cores = parallel::detectCores(), cluster = NULL, ...) + cores = if (Sys.info()["sysname"] == "Windows") 1 else parallel::detectCores(), cluster = NULL, ...) { call <- match.call() parent_models_available = c("SFO", "FOMC", "DFOP", "HS", "SFORB", "IORE", "logistic") |