Skip to content

Commit 03d568b

Browse files
authored
Merge pull request #689 from stan-dev/add-newline-to-check-syntax-output
Add newline to check syntax output
2 parents dd01ab1 + 0cb44c6 commit 03d568b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

R/model.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -774,21 +774,19 @@ check_syntax <- function(pedantic = FALSE,
774774
echo = is_verbose_mode(),
775775
echo_cmd = is_verbose_mode(),
776776
spinner = quiet && interactive(),
777-
stdout_line_callback = function(x, p) {
778-
if (!quiet) cat(x)
779-
},
780777
stderr_callback = function(x, p) {
781778
message(x)
782779
},
783780
error_on_status = FALSE
784781
)
785782
)
783+
cat(run_log$stdout)
786784
if (is.na(run_log$status) || run_log$status != 0) {
787785
stop("Syntax error found! See the message above for more information.",
788786
call. = FALSE)
789787
}
790788
if (!quiet) {
791-
message("Stan program is syntactically correct");
789+
message("Stan program is syntactically correct")
792790
}
793791
invisible(TRUE)
794792
}

0 commit comments

Comments
 (0)