diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2022-10-28 10:31:16 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2022-10-28 10:31:16 +0200 |
commit | 4c868d65be04c8ee3fedc89d28d0e7d8c5da05e0 (patch) | |
tree | 6aa3123f7b722bcffdbdc06c06abe867726c8b91 /R/mhmkin.R | |
parent | 0e9220c6b9132602a3d69e4be582a02da8b07822 (diff) |
Rename 'convergence' method to 'status'
The reason is that it is misleading in the case of saem.mmkin objects,
because convergence is not really checked there.
Diffstat (limited to 'R/mhmkin.R')
-rw-r--r-- | R/mhmkin.R | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -133,11 +133,10 @@ mhmkin.list <- function(objects, backend = "saemix", print.mhmkin <- function(x, ...) { cat("<mhmkin> object\n") cat("Status of individual fits:\n\n") - print(convergence(x)) + print(status(x)) } -#' @export -convergence.mhmkin <- function(object, ...) { +status.mhmkin <- function(object, ...) { if (inherits(object[[1]], "saem.mmkin")) { test_func <- function(fit) { if (inherits(fit$so, "try-error")) { @@ -160,12 +159,12 @@ convergence.mhmkin <- function(object, ...) { dim(result) <- dim(object) dimnames(result) <- dimnames(object) - class(result) <- "convergence.mhmkin" + class(result) <- "status.mhmkin" return(result) } #' @export -print.convergence.mhmkin <- function(x, ...) { +print.status.mhmkin <- function(x, ...) { class(x) <- NULL print(x, quote = FALSE) cat("\n") |