Learn R Programming

osi (version 0.1.0)

license_by_id: Get license metadata by license ID

Description

license_by_id retrieves the metadata for a set of licenses with particular license IDs.

Usage

license_by_id(license_ids, ...)

Arguments

license_ids
the ID (or IDs! It's vectorised!) to retrieve metadata for. IDs can be extracted from existing data with extract_id.
...
arguments to pass to httr's GET.

Value

a list of licenses and their metadata (themselves in the form of lists) which can be provided to other functions such as license_text

See Also

license_text, which can consume the results of this function, and extract_id, to retrieve the IDs, as well as license_by_keyword for an alternate way of looking up particular licenses.

Examples

Run this code
# Get the GPL's metadata
gpl_2_metadata <- license_by_id("GPL-2.0")

Run the code above in your browser using DataLab