Compute relative path

rel_path(path, base = ".")

Relative path

Base path

rel_path("a/b", base = "here")#> [1] "here/a/b"rel_path("/a/b", base = "here")#> [1] "/a/b"