is_url: Check if an argument is a URL string

View source: R/string.R

is_urlR Documentation

Check if an argument is a URL string

Description

Check if an argument is a URL string

Usage

is_url(x)

Arguments

x

(any)
Object to check.

Value

TRUE if x is a valid URL string, FALSE otherwise.

Examples

is_url("https://example.com")

checkstring documentation built on Sept. 28, 2026, 5:07 p.m.