rel_path: Compute relative path

Description Usage Arguments Examples

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")

aaronrudkin/pkgdown documentation built on May 23, 2019, 4:23 p.m.