aboutsummaryrefslogtreecommitdiff
path: root/R/mhmkin.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-10-17 10:28:54 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2022-10-17 10:28:54 +0200
commitb848fb360aa865c37298ee7526344b5280c700cc (patch)
treef1403f49672e01baf5f6b6475db6a383b0d60bee /R/mhmkin.R
parentc03fa5d4e57033869cb437c1154da31abd96fc50 (diff)
SFORB in saem, update for mhmkin and multistart
Diffstat (limited to 'R/mhmkin.R')
-rw-r--r--R/mhmkin.R4
1 files changed, 4 insertions, 0 deletions
diff --git a/R/mhmkin.R b/R/mhmkin.R
index 2df01f0c..542bddf7 100644
--- a/R/mhmkin.R
+++ b/R/mhmkin.R
@@ -207,6 +207,10 @@ BIC.mhmkin <- function(object, ...) {
#' @export
update.mhmkin <- function(object, ..., evaluate = TRUE) {
call <- attr(object, "call")
+ # For some reason we get mhkin.list in call[[1]] when using mhmkin from the
+ # loaded package so we need to fix this so we do not have to export
+ # mhmkin.list in addition to the S3 method mhmkin
+ call[[1]] <- mhmkin
update_arguments <- match.call(expand.dots = FALSE)$...

Contact - Imprint