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

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
#> [1] TRUE
xfun::is_web_path("www.r-project.org")  # FALSE
#> [1] FALSE