Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_dir Indicates that UNC Paths Do not Exist #522

Closed
wsloand opened this issue Jul 13, 2014 · 1 comment
Closed

check_dir Indicates that UNC Paths Do not Exist #522

wsloand opened this issue Jul 13, 2014 · 1 comment

Comments

@wsloand
Copy link

wsloand commented Jul 13, 2014

When working on a UNC share, check_dir indicates:

"Error: Can't find directory /server\share\directory\subdir"

This is the simplified path. It appears likely related to the following code in check_dir:

x <- gsub("\", "/", x, fixed = TRUE)

\ (or "\") is the beginning of a UNC path. Since the current version of devtools requires R >=3.1, perhaps you can use the new functionality in file.path to strip the trailing space and swap that line for

x <- file.path(x)

@hadley
Copy link
Member

hadley commented Aug 21, 2014

I think I can just remove gsub("\\\\", "/", x, fixed = TRUE) - it looks like it has too much escaping anyway.

@hadley hadley closed this as completed in ed0fc6f Aug 21, 2014
@lock lock bot locked and limited conversation to collaborators Sep 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants