Skip to main content

builtin_normalize_path

Function builtin_normalize_path 

Source
fn builtin_normalize_path(
    args: &[RValue],
    named: &[(String, RValue)],
    context: &BuiltinContext<'_>,
) -> Result<RValue, RError>
Expand description

Normalize a file path to its canonical absolute form.

@param path character scalar: path to normalize @param mustWork if TRUE, error when the path cannot be resolved; if FALSE/NA, return the original path on failure @return character scalar: the canonical path (or the original if resolution fails)