Skip to content

check_dir Indicates that UNC Paths Do not Exist #522

Closed
@wsloand

Description

@wsloand

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions