Learn R Programming

fs (version 1.5.0)

is_absolute_path: Test if a path is an absolute path

Description

Test if a path is an absolute path

Usage

is_absolute_path(path)

Arguments

path

A character vector of one or more paths.

Examples

Run this code
# NOT RUN {
is_absolute_path("/foo")
is_absolute_path("C:\\foo")
is_absolute_path("\\\\myserver\\foo\\bar")

is_absolute_path("foo/bar")
# }

Run the code above in your browser using DataLab