Skip to contents

Express file paths in canonical form

Usage

realpath(path)

Arguments

path

character. File paths, which must exist on disk.

Value

character. Absolute (real) file path.

Details

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

Note

Updated 2022-05-31.

See also

Standard path modifiers:

Checking for existence, access:

Examples

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