expand_path: Expand Tilde Path

Description Usage Arguments Value See Also Examples

Description

A wrapper for path.expand that expands a tilde prefixed path, replacing the leading tilde by the user's home directory (if defined on that platform).

Usage

1

Arguments

x

A tilde prefixed path.

Value

Returns a vector of expanded paths.

See Also

file.path

Examples

1
2
3
library(magrittr)
file_path("~/mydir", paste0("file", 1:2, ".pdf")) %>%
    expand_path()

trinker/pathr documentation built on May 31, 2019, 9:41 p.m.