Skip to content

Commit 09701ae

Browse files
committed
Root needs to be normalized before processing
1 parent 633a4b2 commit 09701ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/utils-projects.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ project_path <- function(..., root = NULL) {
140140
}
141141
}
142142

143+
# Normalize the root path
144+
root <- xfun::normalize_path(root, mustWork = FALSE)
143145
# Use xfun::from_root for better path handling
144146
path <- rlang::try_fetch(
145147
xfun::from_root(..., root = root, error = TRUE),

0 commit comments

Comments
 (0)