Skip to content

Commit

Permalink
check eqn>0
Browse files Browse the repository at this point in the history
  • Loading branch information
Siel committed Mar 15, 2024
1 parent cd9483e commit 4ba43ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/PM_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ PM_model_list <- R6::R6Class("PM_model_list",
neqs <- stringr::str_extract_all(eqs, "xp\\((\\d)\\)") %>%
unique() %>%
length()
if (neqs == 0) {stop("Error: PMcore does not support analityc equations, provide a eqn block.")}
content <- gsub("</neqs>", neqs, content)

cov <- self$model_list$cov %>% map(function(c) {
Expand Down

0 comments on commit 4ba43ab

Please sign in to comment.