diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2021-02-13 12:27:39 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2021-02-13 12:27:39 +0100 |
commit | d2d25c51ad95b4344287917574d4c0506bfaf75d (patch) | |
tree | e516dda0401a5a547be4f96e89b5d96ba95f934a /R | |
parent | 48c463680b51fa767b4cd7bd62865f192d0354ac (diff) | |
parent | b4582fc7d3f1d395bfd9d870137b705469d9eab2 (diff) |
Merge branch 'master' into saemix
Run make testcheck to regenerate logs with merge conflicts
Diffstat (limited to 'R')
-rw-r--r-- | R/mkinfit.R | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/R/mkinfit.R b/R/mkinfit.R index 704e70a9..4da39841 100644 --- a/R/mkinfit.R +++ b/R/mkinfit.R @@ -261,8 +261,15 @@ mkinfit <- function(mkinmod, observed, summary_warnings <- character() # Derive the name used for the model - if (is.character(mkinmod)) mkinmod_name <- mkinmod - else mkinmod_name <- deparse(substitute(mkinmod)) + if (is.character(mkinmod)) { + mkinmod_name <- mkinmod + } else { + if (is.null(mkinmod$name)) { + mkinmod_name <- deparse(substitute(mkinmod)) + } else { + mkinmod_name <- mkinmod$name + } + } # Check mkinmod and generate a model for the variable whith the highest value # if a suitable string is given |