aboutsummaryrefslogtreecommitdiff
path: root/R/status.R
diff options
context:
space:
mode:
authorJohannes Ranke <johannes.ranke@jrwb.de>2025-02-14 07:19:15 +0100
committerJohannes Ranke <johannes.ranke@jrwb.de>2025-02-14 07:19:15 +0100
commitb0f08271d1dae8ffaf57f557c27eba1314ece1d5 (patch)
tree98da899d455d6945849d6f4b4e98adfb98dc8b2b /R/status.R
parent7dc59c522d0639f6473463340e518e2e8074e364 (diff)
parent55d9c2331e468efd364472555dbfae84603a4f73 (diff)
Merge branch 'main' into dev
Diffstat (limited to 'R/status.R')
-rw-r--r--R/status.R18
1 files changed, 11 insertions, 7 deletions
diff --git a/R/status.R b/R/status.R
index 8bcd3a16..f9d79e7d 100644
--- a/R/status.R
+++ b/R/status.R
@@ -74,15 +74,19 @@ print.status.mmkin <- function(x, ...) {
status.mhmkin <- function(object, ...) {
if (inherits(object[[1]], "saem.mmkin")) {
test_func <- function(fit) {
- if (inherits(fit$so, "try-error")) {
- return("E")
+ if (inherits(fit, "try-error")) {
+ return("E")
} else {
- if (!is.null(fit$FIM_failed)) {
- return_values <- c("fixed effects" = "Fth",
- "random effects and error model parameters" = "FO")
- return(paste(return_values[fit$FIM_failed], collapse = ", "))
+ if (inherits(fit$so, "try-error")) {
+ return("E")
} else {
- return("OK")
+ if (!is.null(fit$FIM_failed)) {
+ return_values <- c("fixed effects" = "Fth",
+ "random effects and error model parameters" = "FO")
+ return(paste(return_values[fit$FIM_failed], collapse = ", "))
+ } else {
+ return("OK")
+ }
}
}
}

Contact - Imprint