license_by_id: Get license metadata by license ID

Description Usage Arguments Value See Also Examples

View source: R/connectors.R

Description

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

Usage

1
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

1
2
# Get the GPL's metadata
gpl_2_metadata <- license_by_id("GPL-2.0")

osi documentation built on May 29, 2017, 7 p.m.