R: Test if a path is a web path

is_web_path {xfun} | R 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

[Package xfun version 0.28 Index]