Debian Codegraph @

man/same_path.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/paths.R
3 \name{same_path}
4 \alias{same_path}
5 \title{Test if two paths are the same after they are normalized}
6 \usage{
7 same_path(p1, p2, ...)
8 }
9 \arguments{
10 \item{p1, p2}{Two vectors of paths.}
11
12 \item{...}{Arguments to be passed to \code{\link[=normalize_path]{normalize_path()}}.}
13 }
14 \description{
15 Compare two paths after normalizing them with the same separator (\code{/}).
16 }
17 \examples{
18 library(xfun)
19 same_path("~/foo", file.path(Sys.getenv("HOME"), "foo"))
20 }