Skip to content

Commit 966e785

Browse files
committed
add tbb_path to parse_cmdstan_args (same as in run_info_cli)
1 parent c7c976f commit 966e785

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

R/model.R

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2270,10 +2270,16 @@ CmdStanModel$set("public", name = "get_cmdstan_args", value = get_cmdstan_args)
22702270
#' @return A named list with cmdstanr-style argument names and default
22712271
#' values.
22722272
parse_cmdstan_args <- function(model_binary, method) {
2273-
ret <- wsl_compatible_run(
2274-
command = wsl_safe_path(model_binary),
2275-
args = c(method, "help-all"),
2276-
error_on_status = FALSE
2273+
withr::with_path(
2274+
c(
2275+
toolchain_PATH_env_var(),
2276+
tbb_path()
2277+
),
2278+
ret <- wsl_compatible_run(
2279+
command = wsl_safe_path(model_binary),
2280+
args = c(method, "help-all"),
2281+
error_on_status = FALSE
2282+
)
22772283
)
22782284
# CmdStan may write help text to stdout or stderr depending on the platform
22792285
raw <- paste0(ret$stdout, ret$stderr)

0 commit comments

Comments
 (0)