Skip to contents

This function checks if the specified paths are absolute paths and returns a logical vector indicating the result. An absolute path is a path that starts from the root directory, e.g., "/path/to/file.txt", "C:\path\to\file.txt"

Usage

Path_is_absolute(paths)

Arguments

paths

A character vector of file paths.

Value

A logical vector indicating whether each path is an absolute path.

Examples

if (FALSE) {
Path_is_absolute("/path/to/file.txt")
}