Skip to content

Commit c7c976f

Browse files
committed
windows fix
1 parent 7b45182 commit c7c976f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

R/model.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2275,7 +2275,9 @@ parse_cmdstan_args <- function(model_binary, method) {
22752275
args = c(method, "help-all"),
22762276
error_on_status = FALSE
22772277
)
2278-
output <- strsplit(ret$stdout, "\n")[[1]]
2278+
# CmdStan may write help text to stdout or stderr depending on the platform
2279+
raw <- paste0(ret$stdout, ret$stderr)
2280+
output <- strsplit(raw, "\r?\n")[[1]]
22792281

22802282
arguments <- map_cmdstan_to_cmdstanr(method)
22812283
target_args <- vapply(arguments, function(p) {

0 commit comments

Comments
 (0)