bhl_getauthormetadata: Get metadata about an author

View source: R/bhl_getauthormetadata.R

bhl_getauthormetadataR Documentation

Get metadata about an author

Description

Get metadata about an author

Usage

bhl_getauthormetadata(
  id,
  id_type = "bhl",
  pubs = FALSE,
  as = "table",
  key = NULL,
  ...
)

Arguments

id

(numeric) the identifier of an individual author

id_type

(character) the type of identifier (bhl, biostor, viaf). Default: "bhl"

pubs

(logical) TRUE to return the subject's publications. Default: FALSE

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()

Details

You may choose to include a list of the author's publications. The BHLType element identifies the type of each publication (Title or Part).

Examples

## Not run: 
bhl_getauthormetadata(87509)
bhl_getauthormetadata(87509, pubs = TRUE, verbose = TRUE)
bhl_getauthormetadata(87509, as = "json")

## End(Not run)

ropensci/rbhl documentation built on Sept. 12, 2022, 2:02 p.m.