Skip to content

Empty string breaks paths #95

@dsweber2

Description

@dsweber2

What happened:

> here::here("a", "", "b")
[1] "~/a//b"

What I expected

> here::here("a", "", "b")
[1] "~/a/b"

This is also a "feature" of file.path. As written above its fairly silly, but if you have a variable that may or may not have a value, having here still work would be useful. In general, here should return something that is guaranteed to be a path (which may or may not exist).

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