Express file paths in canonical form

realpath(path)

Arguments

path

character. File paths, which must exist on disk.

Note

Updated 2020-08-11.

Use normalizePath() instead for non-existing file paths.

See also

Standard path modifiers:

Checking for existence, access:

Examples

realpath(".")
#> [1] "/Users/mike/git/monorepo/r-packages/AcidBase/docs/reference"