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

Description Usage Arguments Examples

View source: R/paths.R

Description

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

Usage

1
same_path(p1, p2)

Arguments

p1, p2

Two vectors of paths.

Examples

1
2
library(xfun)
same_path("~/foo", file.path(Sys.getenv("HOME"), "foo"))

yihui/xfun documentation built on Nov. 18, 2018, 4:11 p.m.