Skip to content
Snippets Groups Projects
Commit 938b44a6 authored by dj44vuri's avatar dj44vuri
Browse files

new error when chunks smaller than no_sim

parent 20bd966e
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,11 @@ sim_all <- function(nosim=2, resps, destype=NULL, designpath, u, bcoeff, decisio
stop("Argument 'bcoeff' is required.")
}
if (no_sim < chunks) {
stop("You cannot have more chunks than runs. The number of chunks tells us how often we save the simulation results on disk. Maximum one per run.")
}
# Check if bcoeff is a list
if (!is.list(bcoeff)) {
stop("Argument 'bcoeff' must be a list.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment