forked from r-lib/fs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpath.Rd
31 lines (28 loc) · 922 Bytes
/
path.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/path.R
\name{path}
\alias{path}
\alias{path_wd}
\title{Construct path to a file or directory}
\usage{
path(..., ext = "")
path_wd(..., ext = "")
}
\arguments{
\item{...}{character vectors, if any values are NA, the result will also be
NA. The paths follow the recycling rules used in the tibble package,
namely that only length 1 arguments are recycled.}
\item{ext}{An optional extension to append to the generated path.}
}
\description{
\code{path()} constructs a relative path, \code{path_wd()} constructs an absolute path
from the current working directory.
}
\examples{
path("foo", "bar", "baz", ext = "zip")
path("foo", letters[1:3], ext = "txt")
}
\seealso{
\code{\link[=path_home]{path_home()}}, \code{\link[=path_package]{path_package()}} for functions to construct paths
relative to the home and package directories respectively.
}