urltools (version 1.2.0)

suffix_refresh: refresh the stored public suffix dataset

Description

urltools comes with an inbuilt dataset of public suffixes, suffix_dataset. This is used in suffix_extract to identify the top-level domain within a particular domain name.

While updates to the dataset will be included in each new package release, there's going to be a gap between changes to TLDs and changes to the package. Accordingly, the package also includes suffix_refresh, which refreshes this dataset on the user end. This requires CURL (the library, not the R package) on your system to function.

Usage

suffix_refresh()

Arguments

Value

  • TRUE if this worked; an error otherwise.

See Also

suffix_extract to extract suffixes from domain names, or suffix_dataset for the dataset itself.

Examples

Run this code
suffix_refresh()

Run the code above in your browser using DataLab