normalizePath {utils} | R Documentation |
Convert file paths to canonical form for the platform, to display them in a user-understandable form.
normalizePath(path)
path |
character vector of file paths. |
Where the platform supports it this turns paths into absolute paths
in their canonical form (no ./
, ../
nor symbolic links).
If the path is not a real path the result is undefined but will most likely be the corresponding input element.
A character vector.
cat(normalizePath(c(R.home(), tempdir())), sep = "\n")