gpo_package_granules {govinfoR} | R Documentation |
Given a GPO package id, get a list of granules associated with that package.
Description
The offset
param provide by the API is not supported. GovInfo documentation indicates that it was to
be deprecated in December, 2022, and though it is still available through the API, the offsetMark
parameter
is supported instead. Parameter descriptions are adapted from
GovInfo API documentation.
Usage
gpo_package_granules(
package_id,
page_size = 20,
offset_mark = "*",
md5 = NULL,
granule_class = NULL
)
Arguments
package_id |
String. The Package Id. Ex: CREC-2018-01-04 |
page_size |
Integer. The number of records to retrieve per request. Defaults to 20. |
offset_mark |
Indicates starting record for a given request. |
md5 |
String. md5 hash value of the html content file - can be used to identify changes in individual granules for the HOB and CRI collections. |
granule_class |
String. Filter the results by overarching collection-specific categories. Varies by collection. |
Value
A tibble
Examples
gpo_package_granules("CREC-2018-01-04")
[Package govinfoR version 0.0.3 Index]