Learn R Programming

osi (version 0.1.0)

license_text: Retrieve license text

Description

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

Usage

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

Run this code
gpl_2_text <- license_text(license_by_id("GPL-2.0"))

Run the code above in your browser using DataLab