aboutsummaryrefslogtreecommitdiff
path: root/R/mhmkin.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-10-28 10:31:16 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2022-10-28 10:31:16 +0200
commit4c868d65be04c8ee3fedc89d28d0e7d8c5da05e0 (patch)
tree6aa3123f7b722bcffdbdc06c06abe867726c8b91 /R/mhmkin.R
parent0e9220c6b9132602a3d69e4be582a02da8b07822 (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.R9
1 files changed, 4 insertions, 5 deletions
diff --git a/R/mhmkin.R b/R/mhmkin.R
index 542bddf7..47b84b9d 100644
--- a/R/mhmkin.R
+++ b/R/mhmkin.R
@@ -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")

Contact - Imprint