is_web_path: Test if a path is a web path

View source: R/paths.R

is_web_pathR Documentation

Test if a path is a web path

Description

Check if a path starts with ‘http://’ or ‘https://’ or ‘ftp://’ or ‘ftps://’.

Usage

is_web_path(x)

Arguments

x

A vector of paths.

Value

A logical vector.

Examples

xfun::is_web_path("https://www.r-project.org")  # TRUE
xfun::is_web_path("www.r-project.org")  # FALSE

xfun documentation built on Nov. 2, 2023, 6 p.m.