bhl_getcollections: Get a list of collections which are used to group titles and...

Description Usage Arguments Examples

View source: R/bhl_getcollections.R

Description

Get a list of collections which are used to group titles and items. A single collection may contain either titles or items, but not both.

Usage

1
bhl_getcollections(as = "table", key = NULL, ...)

Arguments

as

(character) Return a list ("list"), json ("json"), xml ("xml"), or parsed table ("table", default). Note that as="table" can give different data format back depending on the function - for example, sometimes a data.frame and sometimes a character vector.

key

Your BHL API key, either enter, or loads from your .Renviron as BHL_KEY or from .Rprofile as bhl_key.

...

Curl options passed on to crul::HttpClient()

Examples

1
2
3
4
5
6
7
## Not run: 
bhl_getcollections()
bhl_getcollections(as = 'list')
bhl_getcollections(as = 'json')
bhl_getcollections(as = 'xml')

## End(Not run)

rbhl documentation built on May 13, 2021, 9:07 a.m.