From a289be289d25506341959017275433ce6a1f14ee Mon Sep 17 00:00:00 2001 From: jgabry Date: Wed, 23 Aug 2023 10:45:14 -0600 Subject: [PATCH] change duplicate stdout_file to stderr_file closes #826 --- R/run.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/run.R b/R/run.R index 556477e43..7d2729937 100644 --- a/R/run.R +++ b/R/run.R @@ -560,8 +560,8 @@ CmdStanRun$set("private", name = "run_variational_", value = .run_other) if (file.exists(stdout_file)) { cat(readLines(stdout_file), sep = "\n") } - if (file.exists(stdout_file)) { - cat(readLines(stdout_file), sep = "\n") + if (file.exists(stderr_file)) { + cat(readLines(stderr_file), sep = "\n") } stop( "Diagnose failed with the status code ", ret$status, "!\n",