Compare two paths after normalizing them with the same separator (/).
Arguments
- p1, p2
Two vectors of paths.
- ...
Arguments to be passed to
normalize_path().
Examples
library(xfun)
same_path("~/foo", file.path(Sys.getenv("HOME"), "foo"))
#> [1] TRUE