bhl_subjectsearch: Return a list of subjects that match (fully or partially) the...

Description Usage Arguments Examples

View source: R/bhl_subjectsearch.R

Description

Return a list of subjects that match (fully or partially) the specified search string.

Usage

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

Arguments

subject

the full or partial subject for which to search (character)

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
## Not run: 
bhl_subjectsearch('diptera')
bhl_subjectsearch('diptera', "json")

## End(Not run)

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