diff --git a/R/utils.R b/R/utils.R index f05a61ac..cd87d56b 100644 --- a/R/utils.R +++ b/R/utils.R @@ -128,8 +128,9 @@ repair_path <- function(path) { } path <- path.expand(path) path <- gsub("\\\\", "/", path) - # WSL cmdstan path is a network path and needs the leading // - path <- gsub("//(?!wsl)", "/", path, perl = TRUE) + # Network paths (such as the cmdstan path on WSL) need the leading // + # https://github.com/stan-dev/cmdstanr/issues/1026 + path <- gsub("(?