Skip to content

Commit

Permalink
fs::is_dir() is broken.
Browse files Browse the repository at this point in the history
  • Loading branch information
MLopez-Ibanez committed Jan 8, 2024
1 parent 5e30228 commit f3041b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/path_rel2abs.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ path_rel2abs <- function (path, cwd = getwd())
sys_path <- suppressWarnings(Sys.which(path))
if (nzchar(sys_path)
&& fs::file_access(sys_path, "execute")
&& !fs::is_dir(sys_path)) {
# fs::is_dir() is broken: https://github.com/r-lib/fs/issues/440
&& !file.info(sys_path)$isdir) {
path <- as.vector(sys_path)
}
}
Expand Down

0 comments on commit f3041b1

Please sign in to comment.