Skip to content

Commit

Permalink
Fix path on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Jan 11, 2024
1 parent 03750cc commit 99db640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,8 @@ expose_model_methods <- function(env, force_recompile = FALSE, verbose = FALSE)
with_cmdstan_flags(
processx::run(
command = file.path(R.home(component = "bin"), "R"),
args = c("CMD", "SHLIB", model_obj_file, precomp_methods_file,
"-o", methods_dll),
args = c("CMD", "SHLIB", repair_path(model_obj_file), repair_path(precomp_methods_file),
"-o", repair_path(methods_dll)),
echo = verbose || is_verbose_mode(),
echo_cmd = is_verbose_mode(),
error_on_status = FALSE
Expand Down

0 comments on commit 99db640

Please sign in to comment.