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

Empty string breaks paths #95

Open
dsweber2 opened this issue Jul 24, 2023 · 0 comments
Open

Empty string breaks paths #95

dsweber2 opened this issue Jul 24, 2023 · 0 comments

Comments

@dsweber2
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant