aboutsummaryrefslogtreecommitdiff
path: root/R/mkinmod.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/mkinmod.R')
-rw-r--r--R/mkinmod.R1
1 files changed, 1 insertions, 0 deletions
diff --git a/R/mkinmod.R b/R/mkinmod.R
index f98a3803..c70f1260 100644
--- a/R/mkinmod.R
+++ b/R/mkinmod.R
@@ -180,6 +180,7 @@ mkinmod <- function(..., use_of_ff = "min", speclist = NULL, quiet = FALSE, verb
# Add transfer terms to listed compartments
for (target in to) {
+ if (!target %in% obs_vars) stop("You did not specify a submodel for target variable ", target)
target_box <- switch(spec[[target]]$type,
SFO = target,
IORE = target,

Contact - Imprint