cg_bills_recent_subject: Get recent bills by subject

Description Usage Arguments Value Examples

View source: R/cg_bills_recent_subject.R

Description

Get recent bills by subject

Usage

1
cg_bills_recent_subject(subject, key = NULL, as = "table", ...)

Arguments

subject

(character) A slug version of a legislative subject, displayed as url_name in subject responses.

key

your SunlightLabs API key; loads from environment variable from .Renviron or from an option from .Rprofile

as

(character) One of table (default), list, or response (httr response object). When table is requested, the default, a table is not always returned, but is returned almost always. You can then make a table yourself if you like.

...

Optional additional curl options (debugging tools mostly) passed on to HttpClient

Value

some nasty parsing, so just list of lists for now

Examples

1
2
3
4
## Not run: 
cg_bills_recent_subject("meat")

## End(Not run)

rsunlight documentation built on May 1, 2019, 10:18 p.m.