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. 28, 2024, 2:59 a.m.