Accessory function which checks if a path is absolute or relative; if relative, use a specified parent directory instead than the working dorectory to expand it. Useful for functions which accept more than one path as arguments, in which one of them contains the absolute position, and the others do not.
expand_path(path, parent = getwd(), silent = TRUE, normalize = TRUE)
The path name (
The parent directory (
Logical value: if TRUE (default), no message are shown;
if FALSE, a message inform if
Logical value: if TRUE (default), the path is normalised
The path eventually expanded.
License: GPL 3.0