Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is_web_path

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

Miscellaneous Functions to Support Packages Maintained by 'Yihui Xie'

v0.22
MIT + file LICENSE
Authors
Yihui Xie [aut, cre, cph] (<https://orcid.org/0000-0003-0645-5666>), Wush Wu [ctb], Daijiang Li [ctb], Xianying Tan [ctb], Salim Brüggemann [ctb] (<https://orcid.org/0000-0002-5329-5987>), Christophe Dervieux [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.