\HeaderA{path.expand}{Expand File Paths}{path.expand}
\keyword{file}{path.expand}
\begin{Description}\relax
Expand a path name, for example by replacing a leading tilde by the
user's home directory (if defined on that platform).
\end{Description}
\begin{Usage}
\begin{verbatim}
path.expand(path)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{path}] character vector containing one or more path names.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
On \emph{some} Unix versions, a leading \code{\textasciitilde{}user} will expand to
the home directory of \code{user}, but not on Unix versions without
\code{readline} installed, nor if \R{} is invoked with
\option{--no-readline}.
\end{Details}
\begin{SeeAlso}\relax
\code{\LinkA{basename}{basename}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
path.expand("~/foo")
\end{ExampleCode}
\end{Examples}

