base (version 3.3)

path.expand: Expand File Paths

Description

Expand a path name, for example by replacing a leading tilde by the user's home directory (if defined on that platform).

Usage

path.expand(path)

Arguments

path
character vector containing one or more path names.

See Also

basename, normalizePath.

Examples

Run this code
path.expand("~/foo")

Run the code above in your browser using DataCamp Workspace