Download dataset archive
getDataset.RdReturn a base64 encoded ZIP archive of a specific dataset based on session_id and access_key
Usage
getDataset(
sessionID = NULL,
accessKey = NULL,
file = NULL,
legiKey = NULL,
format = "json"
)Arguments
- sessionID
session_id integer value (use session_id from getDatasetList)
- accessKey
access_key string value (use access_key from getDatasetList)
- file
Optional file path to write the decoded ZIP archive to. When supplied, the base64 zip is decoded and saved to disk
- legiKey
32 character string provided by legiscan
- format
File format of the ZIP contents, either "json" or "csv" (case-insensitive)