Strip a root file path from an absolute filename.

strip_root(root, filename)

Arguments

root

character. The root path.

filename

character. The full file name.

Value

the stripped file path.

Examples

not_run({ stopifnot("test" == strip_root("foo/bar/test", "test")) })