powered by
path() constructs a relative path, path_wd() constructs an absolute path from the current working directory.
path()
path_wd()
path(..., ext = "")path_wd(..., ext = "")
path_wd(..., ext = "")
character vectors, if any values are NA, the result will also be NA.
An optional extension to append to the generated path.
path_home(), path_package() for functions to construct paths relative to the home and package directories respectively.
path_home()
path_package()
# NOT RUN { path("foo", "bar", "baz", ext = "zip") path("foo", letters[1:3], ext = "txt") # }
Run the code above in your browser using DataLab