Skip to contents

This function checks if the specified files or directories exist and returns a logical vector indicating their existence, similar to Python's pathlib.Path.exists() method.

Usage

Path_exists(paths)

Arguments

paths

A character vector of file paths.

Value

A logical vector indicating the existence of each path.

Examples

if (FALSE) {
Path_exists("file.txt")
}