rel_path: Compute relative path

Description Usage Arguments Examples

View source: R/util.r

Description

Compute relative path

Usage

1
rel_path(path, base = ".", windows = on_windows())

Arguments

path

Relative path

base

Base path

windows

Whether the operating system is Windows. Default value is to check the user's system information.

Examples

1
2
rel_path("a/b", base = "here")
rel_path("/a/b", base = "here")

Laurae2/pkgdown documentation built on May 27, 2019, 12:17 p.m.