Skip to content

Commit 03b5cbb

Browse files
committed
Fix reading on WSL
1 parent 65cc780 commit 03b5cbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ get_standalone_hpp <- function(stan_file, stancflags) {
811811
),
812812
wsl_compatible_run(
813813
command = stanc_cmd(),
814-
args = c(paste0("--o=", hpp_path), stancflags, stan_file),
814+
args = c(paste0("--o=", wsl_safe_path(hpp_path)), stancflags, wsl_safe_path(stan_file)),
815815
wd = cmdstan_path(),
816816
error_on_status = FALSE
817817
)

0 commit comments

Comments
 (0)