aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Kellner <ken@kenkellner.com>2023-12-03 13:08:00 -0500
committerKen Kellner <ken@kenkellner.com>2023-12-03 13:08:00 -0500
commit147f0353b3919c32350400f109b09c72767472b2 (patch)
tree74f6594db2d06ec6cd9f14bb9a282f088810895b
parentd82dc02462be008f420f5da5663f3c80171d4213 (diff)
process_output should return NULL if there's an error
-rw-r--r--R/process_output.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/process_output.R b/R/process_output.R
index f7bcaf2..cb18490 100644
--- a/R/process_output.R
+++ b/R/process_output.R
@@ -22,7 +22,7 @@ process_output <- function(mcmc_list, coda_only=NULL, quiet=FALSE){
c(sims, stats_list, dic_list, sum_list)
}, error = function(e) {
message(paste0("Processing output failed with this error:\n",e,"\n"))
- list(sims.list=NA, pD=NA, DIC=NA, summary=NA)
+ NULL
})
}