urltools v1.7.2


Monthly downloads



Vectorised Tools for URL Handling and Parsing

A toolkit for all URL-handling needs, including encoding and decoding, parsing, parameter extraction and modification. All functions are designed to be both fast and entirely vectorised. It is intended to be useful for people dealing with web-related datasets, such as server-side logs, although may be useful for other situations involving large sets of URLs.



A package for elegantly handling and parsing URLs from within R.

Author: Oliver Keyes, Jay Jacobs
License: MIT
Status: Stable

Travis-CI Build Status downloads


URLs in R are often treated as nothing more than part of data retrieval - they're used for making connections and reading data. With web analytics and research, however, URLs can be the data, and R's default handlers are not best suited to handle vectorised operations over large datasets. urltools is intended to solve this.

It contains drop-in replacements for R's URLdecode and URLencode functions, along with new functionality such as a URL parser and parameter value extractor. In all cases, the functions are designed to be content-safe (not breaking on unexpected values) and fully vectorised, resulting in a dramatic speed improvement over existing implementations - crucial for large datasets. For more information, see the urltools vignette.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.


The latest CRAN version can be obtained via:


To get the development version:



Functions in urltools

Name Description
parameters Get or set a URL's parameters
path Get or set a URL's path
urltools Tools for handling URLs
url_parse split URLs into their component parts
tld_dataset Dataset of top-level domains (TLDs)
tld_extract Extract TLDs
tld_refresh Retrieve a TLD dataset
url_compose Recompose Parsed URLs
host_extract Extract hosts
url_decode Encode or decode a URI
param_get get the values of a URL's parameters
suffix_extract extract the suffix from domain names
fragment Get or set a URL's fragment
suffix_refresh Retrieve a public suffix dataset
strip_credentials Get or remove user authentication credentials
port Get or set a URL's port
domain Get or set a URL's domain
puny_encode Encode or Decode Internationalised Domains
param_remove Remove key-value pairs from query strings
param_set Set the value associated with a parameter in a URL's query.
scheme Get or set a URL's scheme
suffix_dataset Dataset of public suffixes
No Results!

Vignettes of urltools

No Results!

Last month downloads


Type Package
Date 2019-02-03
License MIT + file LICENSE
LazyData TRUE
LinkingTo Rcpp
URL https://github.com/Ironholds/urltools/
BugReports https://github.com/Ironholds/urltools/issues
VignetteBuilder knitr
RoxygenNote 6.1.1
Encoding UTF-8
NeedsCompilation yes
Packaged 2019-02-04 06:27:29 UTC; ironholds
Repository CRAN
Date/Publication 2019-02-04 08:40:03 UTC

Include our badge in your README