Package: rurl 3.1.0.9000

rurl: Parse, Clean, and Normalize URLs

A lightweight toolkit for extracting structured information from URLs. Includes functions for parsing, normalizing protocols, extracting domains, and constructing clean URLs. Domain and public-suffix extraction is delegated to the 'pslr' package, which implements the Public Suffix List from <https://publicsuffix.org>. Punycode and IDNA encoding is handled by the 'punycoder' package, and IP address facts by the 'raddr' package.

Authors:Bart Turczynski [aut, cre, cph]

rurl_3.1.0.9000.tar.gz
rurl_3.1.0.9000.zip(r-4.7-any)rurl_3.1.0.9000.zip(r-4.6-any)rurl_3.1.0.9000.zip(r-4.5-any)
rurl_3.1.0.9000.tgz(r-4.6-any)rurl_3.1.0.9000.tgz(r-4.5-any)
rurl_3.1.0.9000.tar.gz(r-4.7-any)rurl_3.1.0.9000.tar.gz(r-4.6-any)
rurl_3.1.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
rurl/json (API)

# Install 'rurl' in R:
install.packages('rurl', repos = c('https://bart-turczynski.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://gitlab.com/bart-turczynski/rurl

Pkgdown/docs site:https://bart-turczynski.gitlab.io

On CRAN:

Conda:

url-parsingurl-parserurl-normalizationurl-cleaningurl-cleanerurl-checkerdomain-extractiondomain-name-detectiondomain-name-checkerpublic-suffixtldtldstld-extractiontld-checkertld-verificationidnapunycodeuriurlseoweb-scraping

6.62 score 5 packages 565 downloads 42 exports 12 dependencies

Last updated from:1e5e616232. Checks:4 OK, 5 ERROR. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK373
source / vignettesOK222
linux-releaseOK321
macos-releaseERROR320
macos-oldrelERROR375
windows-develERROR511
windows-releaseERROR510
windows-oldrelERROR501
wasm-releaseOK91

Exports:canonical_joincheck_hostscheck_schemesformat_urlget_clean_urlget_domainget_fragmentget_hostget_host_typeget_mailto_recipientsget_parse_statusget_parse_verdictsget_passwordget_pathget_portget_queryget_schemeget_scheme_classget_subdomainget_tldget_url_diagnosticsget_url_keyget_userget_userinfois_valid_hostquery_param_summaryresolve_urlrurl_cache_configrurl_cache_inforurl_clear_cachessafe_parse_urlsafe_parse_urlsserialise_urlserialize_urlurl_anti_joinurl_full_joinurl_inner_joinurl_key_policyurl_left_joinurl_profileurl_right_joinurl_semi_join

Dependencies:clicpp11digestgluelifecyclepslrpunycoderraddrRcpprlangstringivctrs

Getting Started with rurl
Introduction | Safe URL Parsing | Extracting URL Components | Domain and TLD Parsing | Vectorization and Edge Cases | Advanced Host Manipulation with subdomain_levels_to_keep | Getting the whole URL back | Caching | Summary | See also | Acknowledgments

Last update: 2026-11-18
Started: 2025-05-02

Standard-conformant parsing with url_standard
Why a selector? | The canonical cases | Encoded unreserved bytes (%41%42) | Encoded reserved bytes (%2F) | Whole-number IPv4 (2130706433) | Diagnostics are facts, not policy | Ports and backslashes | Resolving references | What "whatwg" changes | Which colon starts a scheme | Asking for the standard string instead | Migration notes | What the selector does not govern | Conformance posture

Last update: 2026-10-28
Started: 2026-07-05

Readme and manuals

Help Manual

Help pageTopics
Canonical Join of Two URL Sets (Deprecated)canonical_join
Report practical host validation verdicts for a set of URLscheck_hosts
Report scheme facts for a set of URLs, and score them against an allowlistcheck_schemes
Format a URL for safe human displayformat_url
Get cleaned URLsget_clean_url
Get domain namesget_domain
Get URL fragmentsget_fragment
Get URL hostsget_host
Classify the host of each URL under a standard profileget_host_type
Per-recipient email diagnostics for the mailto: positional recipient listget_mailto_recipients
Get the parse status of URLsget_parse_status
Report the layered validation verdicts for each URLget_parse_verdicts
Get URL passwordsget_password
Get URL pathsget_path
Get URL portsget_port
Get URL query stringsget_query
Get URL schemesget_scheme
Classify the scheme of each URL as WHATWG special or notget_scheme_class
Get URL subdomainsget_subdomain
Extract the top-level domain (TLD) from a URLget_tld
Report non-fatal diagnostics for each URL under a standard profileget_url_diagnostics
URL comparison keyget_url_key
Get URL user namesget_user
Get URL userinfoget_userinfo
Test whether each URL's host satisfies a practical validation ruleis_valid_host
Summarize query parameters across a set of URLsquery_param_summary
Resolve a URL reference against a base URLresolve_url
Configure the rurl memoization cachesrurl_cache_config
Inspect the rurl memoization cachesrurl_cache_info
Clear all rurl cachesrurl_clear_caches
Parse multiple URLs and return a data.frame of componentssafe_parse_urls
Serialize URLs to a standard's own full-string formserialise_url serialize_url
Identity-keyed URL joinsurl_anti_join url_full_join url_inner_join url_join url_left_join url_right_join url_semi_join
Comparison-key policyurl_key_policy
Inspect a named parsing profileurl_profile