Retrieve license text

Share:

Description

license_text grabs the actual plaintext of a set of licenses within the provided metadata, wherever possible.

Usage

1
license_text(license_metadata, ...)

Arguments

license_metadata

metadata returned from license_by_id, license_by_keyword or license_list which covers the licenses you want the text of.

...

further arguments to pass to httr's GET.

Value

a data.frame of 3 columns; "license" containing the license IDs, "content" containing the actual text, and "retrieved_from" indicating the URL the content was returned from. In the event that the plaintext of a license is not available (because a URL for it was not in the metadata), content and retrieved_from will be NAs.

Examples

1
gpl_2_text <- license_text(license_by_id("GPL-2.0"))