Skip to content

Commit 659b326

Browse files
committed
ensure we use forward slashes
1 parent 5e2d016 commit 659b326

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

R/utils.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ asBuildPath <- function(path) {
1414
if (grepl(" ", path, fixed = TRUE) && !is_windows() && !is_solaris())
1515
path <- shQuote(path)
1616

17+
# ensure we use forward slashes, even on Windows
18+
path <- chartr("\\", "/", path)
19+
1720
# return path
18-
return(path)
21+
path
1922

2023
}
24+

0 commit comments

Comments
 (0)