Rev 52927 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/utils/man/normalizePath.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2010 R Core Development Team% Distributed under GPL 2 or later\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{Where the Unix-alike platform supports it this turns paths intoabsolute paths in their canonical form (no \samp{./}, \samp{../} norsymbolic links).On Windows it converts relative paths to absolute paths, and convertsshort names to long names. It will always use backslashes as the pathseparator.}\value{A character vector.If a path is not a real path the result is undefined. OnUnix-alikes, this will likely be the corresponding input element.On Windows, a warning will be issued, and the result will be eitherthe corresponding input element, or a transformation of itinto an absolute path.}\seealso{\code{\link{file_path_as_absolute}} in package \pkg{tools}.#ifdef windows\code{\link{shortPathName}}#endif}\examples{\donttest{ # random tempdircat(normalizePath(c(R.home(), tempdir())), sep = "\n")}}\keyword{ utilities }