Skip to content

Commit

Permalink
Set minimum version of fs.
Browse files Browse the repository at this point in the history
Support for trailing slash of Windows drive introduced in v1.24. I had
been testing in v1.2.3.

https://github.com/r-lib/fs/blob/master/NEWS.md#fs-124
r-lib/fs#124
  • Loading branch information
jdblischak committed Oct 22, 2018
1 parent e6171f2 commit 2b8174d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Expand Up @@ -25,7 +25,7 @@ Encoding: UTF-8
LazyData: true
Imports:
callr,
fs,
fs (>= 1.2.4),
getPass,
git2r,
glue,
Expand Down
5 changes: 0 additions & 5 deletions R/utility.R
Expand Up @@ -71,11 +71,6 @@ absolute <- function(path) {
newpath <- resolve_symlink(newpath)
newpath <- as.character(newpath)

# Add trailing slash for Windows drive
if (.Platform$OS.type == "windows") {
newpath <- stringr::str_replace(newpath, ":$", ":/")
}

return(newpath)
}

Expand Down

0 comments on commit 2b8174d

Please sign in to comment.