path.expand: Expand File Paths

Description Usage Arguments Details See Also Examples

View source: R/files.R

Description

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

Usage

1

Arguments

path

character vector containing one or more path names.

Details

On some Unix builds of R, a leading ~user will expand to the home directory of user, but not on Unix versions without readline installed, nor if R is invoked with --no-readline.

In an interactive session capabilities("cledit") will report if readline is available.

See Also

basename, normalizePath.

Examples

1
path.expand("~/foo")

robertzk/monadicbase documentation built on May 27, 2019, 10:35 a.m.