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

View source: R/paths.R

same_pathR Documentation

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.

...

Arguments to be passed to normalize_path().

Examples

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

yihui/xfun documentation built on April 24, 2024, 5:13 p.m.