xfun (version 0.4)

same_path: Test if two paths are the same after they are normalized

Description

Compare two paths after normalizing them with the same separator (/).

Usage

same_path(p1, p2)

Arguments

p1, p2

Two vectors of paths.

Examples

Run this code
# NOT RUN {
library(xfun)
same_path("~/foo", file.path(Sys.getenv("HOME"), "foo"))
# }

Run the code above in your browser using DataLab