here
here copied to clipboard
use ... to specify path in i_am()?
This may be a picky point, but the only way to use i_am()
with a compound path is to provide the file separator. I understand that one of the goals of {here} is to abstract the file separator away from the user.
Could the ...
argument in i_am()
be implemented the same way as it is for here()
?
I see from the i_am()
documentation that ...
is reserved for future use, could this be it?
Thanks!
actually this will be easily solved by adding path <- do.call(file.path, as.list(path))
after the empty dots check in i_am
code. Also changing the description to show that path accepts a character vector of any size.
Edit : path <- paste0(path, collapse=.Platform$file.sep)
will work too :)
Thanks for raising this. I think these days /
works as a file separator everywhere? What's the motivation behind splitting the path?
I think the only motivation was to keep parity with here()
- if you are used to ...
working there, you might expect for it to work with i_am()
. Otherwise, I agree that /
has become standard.