Rev 35920 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{normalizePath}\alias{normalizePath}\title{Express File Paths in Canonical Form}\description{Convert file paths to canonical form for the platform, to display themin a user-understandable form.}\usage{normalizePath(path)}\arguments{\item{path}{character vector of file paths.}}\details{#ifdef unixWhere the platform supports it this turns paths into absolute pathsin their canonical form (no \code{./}, \code{../} nor symbolic links).#endif#ifdef windowsThis converts relative paths to absolute paths, and converts shortnames to long names. It will always use backlashes as the path separator.#endifIf the path is not a real path the result is undefined but will mostlikely be the corresponding input element.}\value{A character vector.}#ifdef windows\seealso{\code{\link{shortPathName}}}#endif\examples{cat(normalizePath(c(R.home(), tempdir())), sep = "\n")}\keyword{ utilities }