Compare two paths after normalizing them with the same separator (/).
/
same_path(p1, p2)
p1, p2
Two vectors of paths.
library(xfun) same_path("~/foo", file.path(Sys.getenv("HOME"), "foo"))