File: relative_to.Rd

package info (click to toggle)
r-cran-rmarkdown 1.11%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,228 kB
  • sloc: sh: 24; makefile: 10
file content (22 lines) | stat: -rw-r--r-- 578 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/relative_to.R
\name{relative_to}
\alias{relative_to}
\title{Relative path utility function}
\usage{
relative_to(dir, file)
}
\arguments{
\item{dir}{Directory}

\item{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).
}
\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.
}