From a9fe626f8fbda81acc5eff2a1c982dd499f7d223 Mon Sep 17 00:00:00 2001
From: Julian Sagebiel <julian.sagebiel@idiv.de>
Date: Sun, 15 Dec 2024 20:06:51 +0100
Subject: [PATCH] small change in error message so that it works now

---
 R/sim_all.R | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/R/sim_all.R b/R/sim_all.R
index 98fd1c8..671e767 100644
--- a/R/sim_all.R
+++ b/R/sim_all.R
@@ -45,7 +45,7 @@ sim_all <- function(nosim=2, resps, destype=NULL, designpath, u, bcoeff, decisio
   }
 
 
-  if (no_sim < chunks) {
+  if (nosim < 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.")
   }
 
-- 
GitLab