path.expand: Expand File Paths

Description Usage Arguments Details See Also Examples

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")

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.