Skip to content

Commit 65614df

Browse files
committed
further sanity check
1 parent fc096c9 commit 65614df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/runArraySimulation.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ runArraySimulation <- function(design, ..., replications,
335335
filename_suffix <- paste0("-", rowpick)
336336
stopifnot(!missing(replications))
337337
stopifnot(rowpick %in% 1L:nrow(design))
338+
stopifnot(nrow(design) == length(replications))
338339
if(!is.null(filename))
339340
filename <- paste0(filename, filename_suffix)
340341
if(!is.null(dirname)){

0 commit comments

Comments
 (0)