Debian Codegraph @

man/path.Rd

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