aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2020-07-15 11:49:34 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2020-07-15 11:49:34 +0200
commit46763edbd1c9b14cff15c53d96312a7930225704 (patch)
tree59694acce60b38c0e0fa1a1554b18174966a65b9 /R
parent1403e61d1242a4bc97120f7e12b8f0e59f950d15 (diff)
Use try() within mmkin
This keeps mmkin from stopping if one of the fits fails. Instead, a try-error is assigned to the respective position in the mmkin object.
Diffstat (limited to 'R')
-rw-r--r--R/mmkin.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/mmkin.R b/R/mmkin.R
index 37c4e87d..adb9f4d0 100644
--- a/R/mmkin.R
+++ b/R/mmkin.R
@@ -95,7 +95,7 @@ mmkin <- function(models = c("SFO", "FOMC", "DFOP"), datasets,
w <- which(fit_indices == fit_index, arr.ind = TRUE)
model_index <- w[1]
dataset_index <- w[2]
- mkinfit(models[[model_index]], datasets[[dataset_index]], ...)
+ res <- try(mkinfit(models[[model_index]], datasets[[dataset_index]], ...))
}
if (is.null(cluster)) {

Contact - Imprint