get_url_scheme: Get URL scheme ('http://', etc.)

View source: R/paths.R

get_url_schemeR Documentation

Get URL scheme ('http://', etc.)

Description

Get URL scheme ('http://', etc.)

Usage

get_url_scheme(url, colonslashes = TRUE)

Arguments

url

string or vector of strings of URLs

colonslashes

whether to include '://' and ':', defaults to TRUE Not included when scheme is missing

Examples

get_url_scheme("http://example.com")
get_url_scheme("https://www.example.org/index.html")
get_url_scheme("s3://hfty-test-bucket/dir1/file.txt", colonslashes = FALSE)

fcocquemas/hfty.helpers documentation built on Feb. 13, 2023, 7:25 a.m.