abspath: Turn path into an absolute path

Description Usage Arguments Details Value Examples

View source: R/utils.r

Description

Turn path into an aboslute path. The file or folder does not have to exists.

Usage

1
abspath(path)

Arguments

path

a relative path

Details

The tools::file_path_as_absolute will turn a path into an aboslute path but only if the path exists. This makes it unusable in certain cases, such as when a desired output path needs to be passed to an external call.

Value

an absolute path

Examples

1
2
abspath("foo.txt") # equal to file.path(getwd(), "foo.txt")
abspath("~/foo/bar/")

bioDS/phyloRNA documentation built on Feb. 21, 2022, 3:28 p.m.