A Fast 'WHATWG' Compliant URL Parser
Overview
A wrapper for 'ada-url', a 'WHATWG' compliant and fast URL parser written in modern 'C++'. Also contains auxiliary functions such as a public suffix extractor.
Breaking changes
- privately registered suffixes (
github.io,blogspot.com,s3.amazonaws.com, ...) are now part of the public suffix list lookup (#65).public_suffix()andada_get_domain()gained anicann_onlyargument, defaulting toFALSE; passicann_only = TRUEfor the previous behaviour. ``r public_suffix("foo.github.io") # "github.io" (was "io") ada_get_domain("https://foo.github.io/p") # "foo.github.io" ada_get_domain("https://foo.github.io/p", icann_only = TRUE) # "github.io"``
Other changes
public_suffix()now honours the exception (!) rules of the public suffix list, which were previously stored with their!prefix and could never match.public_suffix("city.kobe.jp")is now"kobe.jp"rather than"city.kobe.jp", andada_get_domain()returns a domain instead of""for hosts under those rules
Show all changes in 0.4.0Hide the rest of the changes in 0.4.0
ada_get_domain()no longer strips a leadingwww.before looking up the suffix; the result is unchanged for ordinary hosts butwww.ckand similar no longer come back asNA- the C++ loops check for a user interrupt, so long vectors can be cancelled with Ctrl-C (#49)
- fixed
url_decode2()dropping the remainder of a string after a%that is not followed by two hex digits (the escape is now passed through verbatim) - fixed
public_suffix()erroring on two or more bare hostnames matching a wildcard rule, e.g.public_suffix(c("a.b.ck", "c.d.ck")) public_suffix()now accepts full URLs with a path (#54), and returns the same suffix for a URL and its hostnameada_get_domain()now accepts a bare domain, so it is idempotent (#36); schemeless input with a path is stillNAada_get_basename()gained thedecodeargument the other getters have, and no longer appends//for schemes without an authority component- all exported functions now error on non-character input instead of silently returning
NA
From NEWS.md in the release
Install
Health
ERRORwhether package can be installedr-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-release-macos-x86_64
r-oldrel-macos-arm64
Installation failed. See ‘/Volumes/Builds/packages/big-sur-arm64/results/4.5/adaR.Rcheck/00install.out’ for details.
r-oldrel-macos-x86_64
Installation failed. See ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.5/adaR.Rcheck/00install.out’ for details.
r-release-macos-x86_64
Installation failed. See ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.6/adaR.Rcheck/00install.out’ for details.
- ERROR10 OK, 3 ERRORNow
- ERROR10 OK, 4 ERROR2026-03-10
Documentation
- Help pages
- 7
- Examples that run
- 100%7 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- Introduction to adaR HTML
Downloads
Repository
- PRs merged (all time)
- 96%
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
14 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/gesistsa/adar on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-22 · The repository has a site deploy workflow
Show all practicesHide 3 practices
Dependencies
Installing adaR adds 2 packages (2 with compiled code, 1.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB, triebeard 31 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.4.0Latest
- RR 4.6.0 released · 2026-04-24
- 0.3.52026-02-21 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.3.42025-01-16 · diff ↗
- 0.3.32024-07-12 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.3.22024-02-08 · diff ↗
- 0.3.12023-11-16 · diff ↗
- 0.3.02023-10-16 · diff ↗ ·
added 14 exports
ada_clear_hash, ada_clear_port, ada_clear_search, ada_get_basename, ada_set_hash, ada_set_host, ada_set_hostname, ada_set_href, ada_set_password, ada_set_pathname, ada_set_port, ada_set_protocol, ada_set_search, ada_set_username - 0.2.02023-10-01
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-10-01
- Total releases
- 8 / 3 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.2
- Download size
- 523 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("adaR")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.