relative_to: Relative path utility function

View source: R/relative_to.R

relative_toR Documentation

Relative path utility function

Description

Given a directory and a file, return a relative path from the directory to the file, or the unmodified file path if the file does not appear to be in the directory.

Usage

relative_to(dir, file)

Arguments

dir

Directory

file

File

Value

Relative path from the directory to the file (or the unmodified file path if the file does not appear to be in the directory).


rmarkdown documentation built on Sept. 18, 2023, 5:17 p.m.