Package 'federalregister'

Title: Client Package for the U.S. Federal Register API
Description: Access data from the Federal Register API <https://www.federalregister.gov/developers/api/v1>.
Authors: Thomas J. Leeper
Maintainer: Thomas J. Leeper <[email protected]>
License: GPL-2
Version: 0.2.0
Built: 2025-03-13 10:24:29 UTC
Source: https://github.com/rOpenGov/federalregister

Help Index


Client package for the U.S. Federal Register API

Description

Access United States Federal Register data from R.

Author(s)

Thomas J. Leeper

Maintainer: Thomas J. Leeper <[email protected]>


Get Federal Register Agency Information

Description

Function to get information about all (the default) or, optionally, a single federal agency listed in the Federal Register

Usage

fr_agencies(id=NULL, version='v1', ...)

Arguments

id

An optional numeric or character string containing a Federal Register agency identifying number. If NULL (the default), information about all agencies is returned.

version

The Federal Register API version. Default is 'v1'.

...

Additional arguments passed to GET.

Value

A list containing one or more lists of class fedreg_agency, which contain details about the agency.

Author(s)

Thomas J. Leeper

Examples

## Not run: fr_agencies(538)
## Not run: fr_agencies()

Get Federal Register Metadata

Description

Function to get metadata for one or more Federal Register Documents

Usage

fr_get(docnumber, fields=NULL, version='v1', ...)

Arguments

docnumber

A character vector containing one or more Federal Register document numbers.

fields

A character vector specifying the names of fields to return. See Details.

version

The Federal Register API version. Default is 'v1'.

...

Additional arguments passed to GET.

Details

Allowed values for fields are: abstract, abstract_html_url, action, agencies, agency_names, body_html_url, cfr_references, citation, comments_close_on, correction_of, corrections, dates, docket_id, docket_ids, document_number, effective_on, end_page, excerpts, executive_order_notes, executive_order_number, full_text_xml_url, html_url, json_url, mods_url, page_length, pdf_url, president, public_inspection_pdf_url, publication_date, raw_text_url, regulation_id_number_info, regulation_id_numbers, regulations_dot_gov_info, regulations_dot_gov_url, significant, signing_date, start_page, subtype, title, toc_doc, toc_subject, topics, type, volume.

Value

A list containing one or more objects of class fedreg_document.

Author(s)

Thomas J. Leeper

Examples

## Not run: fr_get("2014-05323")
## Not run: fr_get(c("2014-05323","2014-09343"))

Retrieve Public Inspection Documents

Description

Function to retrieve all current Public Inspection Documents

Usage

pi_current(version='v1', ...)

Arguments

version

The Federal Register API version. Default is 'v1'.

...

Additional arguments passed to GET.

Details

Retrieve all current Public Inspection Documents, those items available to the public prior to publication in the Federal Register.

Value

A list containing one or more objects of class fedreg_document.

Author(s)

Thomas J. Leeper

References

https://www.federalregister.gov/learn/public-inspection-desk-2

Examples

## Not run: pi_current()

Get Public Inspection Metadata

Description

Function to get metadata for one or more Public Inspection Documents

Usage

pi_get(docnumber, version='v1', ...)

Arguments

docnumber

A character vector containing one or more Public Inspection Document document numbers.

version

The Federal Register API version. Default is 'v1'.

...

Additional arguments passed to GET.

Value

A list containing one or more objects of class fedreg_document.

Author(s)

Thomas J. Leeper

References

https://www.federalregister.gov/learn/public-inspection-desk-2

Examples

## Not run: pi_get("2014-10067")
## Not run: pi_get(c("2014-10067","2014-10687"))