|
111 | 111 | #'
|
112 | 112 | #' @param ... additional arguments to be passed to \code{\link{runSimulation}}
|
113 | 113 | #'
|
| 114 | +#' @param verbose logical; pass a verbose flag to \code{\link{runSimulation}}. |
| 115 | +#' Unlike \code{\link{runSimulation}} this is set to FALSE during interactive |
| 116 | +#' sessions, though set to TRUE when non-interactive and information about the |
| 117 | +#' session itself should be stored (e.g., in SLURM \code{.out} files) |
| 118 | +#' |
114 | 119 | #' @export
|
115 | 120 | #'
|
116 | 121 | #' @author Phil Chalmers \email{rphilip.chalmers@@gmail.com}
|
@@ -289,8 +294,8 @@ runArraySimulation <- function(design, ..., replications,
|
289 | 294 | addArrayInfo = TRUE,
|
290 | 295 | parallel = FALSE, cl = NULL,
|
291 | 296 | ncores = parallelly::availableCores(omit = 1L),
|
292 |
| - save_details = list(), |
293 |
| - control = list()){ |
| 297 | + save_details = list(), control = list(), |
| 298 | + verbose = ifelse(interactive(), FALSE, TRUE)){ |
294 | 299 | dots <- list(...)
|
295 | 300 | if(parallel && ncores == 1L) parallel <- FALSE
|
296 | 301 | if(!is.null(dots$save_results) && isTRUE(dots$save_results))
|
@@ -339,7 +344,7 @@ runArraySimulation <- function(design, ..., replications,
|
339 | 344 | dsub <- design[row, , drop=FALSE]
|
340 | 345 | attr(dsub, 'Design.ID') <- attr(design, 'Design.ID')[row]
|
341 | 346 | ret <- runSimulation(design=dsub, replications=replications, seed=seed,
|
342 |
| - verbose=FALSE, save_details=save_details, |
| 347 | + verbose=verbose, save_details=save_details, |
343 | 348 | parallel=parallel, cl=cl,
|
344 | 349 | control=control, save=FALSE, ...)
|
345 | 350 | attr(ret, 'extra_info')$number_of_conditions <- nrow(design)
|
|
0 commit comments