# relative_to

0th

Percentile

##### Relative path utility function

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

##### Aliases
• relative_to
Documentation reproduced from package rmarkdown, version 0.9.6, License: GPL-3

### Community examples

Looks like there are no examples yet.