Skip to content

Commit 012e2fd

Browse files
committed
add drop
1 parent 0959899 commit 012e2fd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

R/runArraySimulation.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
#' where the script was submitted
5959
#'
6060
#' @param parallel logical; use parallel computations via the a "SOCK" cluster?
61-
#' Only use when the instruction shell file requires more than 1 core
61+
#' Only useful when the instruction shell file requires more than 1 core
6262
#' (number of cores detected via \code{ncores}). For this application
6363
#' the random seeds further distributed using \code{\link[parallel]{nextRNGSubStream}}
6464
#'
@@ -301,6 +301,7 @@ runArraySimulation <- function(design, ..., replications,
301301
control = list()){
302302
dots <- list(...)
303303
ncores <- check_ncores(ncores)
304+
if(parallel && ncores == 1L) parallel <- FALSE
304305
if(!is.null(dots$save_results) && isTRUE(dots$save_results))
305306
stop('save_results not supported for array jobs. Please use store_results only')
306307
if(!is.null(control$save_seeds) && isTRUE(control$save_seeds))

man/runArraySimulation.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)