jranke / mkin

@@ -13,7 +13,8 @@
Loading
13 13
#'   is only used when the \code{cluster} argument is \code{NULL}. On Windows
14 14
#'   machines, cores > 1 is not supported, you need to use the \code{cluster}
15 15
#'   argument to use multiple logical processors. Per default, all cores
16 -
#'   detected by [parallel::detectCores()] are used.
16 +
#'   detected by [parallel::detectCores()] are used, except on Windows where
17 +
#'   the default is 1.
17 18
#' @param cluster A cluster as returned by \code{\link{makeCluster}} to be used
18 19
#'   for parallel execution.
19 20
#' @param \dots Further arguments that will be passed to \code{\link{mkinfit}}.
@@ -75,7 +76,7 @@
Loading
75 76
#'
76 77
#' @export mmkin
77 78
mmkin <- function(models = c("SFO", "FOMC", "DFOP"), datasets,
78 -
  cores = parallel::detectCores(), cluster = NULL, ...)
79 +
  cores = if (Sys.info()["sysname"] == "Windows") 1 else parallel::detectCores(), cluster = NULL, ...)
79 80
{
80 81
  call <- match.call()
81 82
  parent_models_available = c("SFO", "FOMC", "DFOP", "HS", "SFORB", "IORE", "logistic")
Files Coverage
R 90.52%
Project Totals (41 files) 90.52%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading