aboutsummaryrefslogtreecommitdiff
path: root/R/mkinfit.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2020-06-15 09:05:27 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2020-06-15 09:05:27 +0200
commit068b168d78c9550a77514e0c39923f8d40b48b03 (patch)
treebea0c6801e687d4e0f326ddbdbf5a0a27df8f355 /R/mkinfit.R
parente6f9e9ca89e35e610d9895b979f1351a47451db0 (diff)
Fix a bug, update for current vdiffr
Vignette FOCUS_L failed as I had introduced a bug in the handling of warnings. Current vdiffr only runs visual tests if R < 4.1.0, skipping r-devel for now, see https://github.com/r-lib/vdiffr/commit/630a29d013361fd63fea242f531e2db6aef37919
Diffstat (limited to 'R/mkinfit.R')
-rw-r--r--R/mkinfit.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/mkinfit.R b/R/mkinfit.R
index ec2d3412..154c2a18 100644
--- a/R/mkinfit.R
+++ b/R/mkinfit.R
@@ -853,7 +853,7 @@ mkinfit <- function(mkinmod, observed,
if (fit$convergence != 0) {
convergence_warning = paste0("Optimisation did not converge:\n", fit$message)
- summary_warnings <- c(warnings, convergence_warning)
+ summary_warnings <- c(summary_warnings, convergence_warning)
warning(convergence_warning)
} else {
if(!quiet) message("Optimisation successfully terminated.\n")

Contact - Imprint