Learn R Programming

irace (version 3.5)

path_rel2abs: Converts a relative path to an absolute path. It tries really hard to create canonical paths.

Description

Converts a relative path to an absolute path. It tries really hard to create canonical paths.

Usage

path_rel2abs(path, cwd = getwd())

Value

(character(1)) Character string representing the absolute path

Arguments

path

(character(1)) Character string representing a relative path.

cwd

(character(1)) Current working directory.

Examples

Run this code
path_rel2abs("..")

Run the code above in your browser using DataLab