aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2021-02-13 12:27:39 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2021-02-13 12:27:39 +0100
commitd2d25c51ad95b4344287917574d4c0506bfaf75d (patch)
treee516dda0401a5a547be4f96e89b5d96ba95f934a /R
parent48c463680b51fa767b4cd7bd62865f192d0354ac (diff)
parentb4582fc7d3f1d395bfd9d870137b705469d9eab2 (diff)
Merge branch 'master' into saemix
Run make testcheck to regenerate logs with merge conflicts
Diffstat (limited to 'R')
-rw-r--r--R/mkinfit.R11
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

Contact - Imprint