realpath: Express file paths in canonical form

View source: R/realpath.R

realpathR Documentation

Express file paths in canonical form

Description

Express file paths in canonical form

Usage

realpath(path)

Arguments

path

character. File paths, which must exist on disk.

Details

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

Value

character. Absolute (real) file path.

Note

Updated 2022-05-31.

See Also

Standard path modifiers:

  • normalizePath().

  • file.path().

Checking for existence, access:

  • file.access().

  • file.exists().

  • goalie::hasAccess().

  • goalie::allHaveAccess().

Examples

realpath(".")

acidgenomics/acidbase documentation built on Jan. 26, 2024, 4:26 p.m.