rbhl

knitr::opts_chunk$set(
  warning = FALSE,
  message = FALSE,
  collapse = TRUE,
  comment = "#>"
)

cran checks Project Status: Active – The project has reached a stable, usable state and is being actively developed. R-check rstudio mirror downloads cran version codecov.io

rbhl is an R interface to the Biodiversity Heritage Library API.

Info

Authentication:

Documentation:

Installation

Stable version

install.packages("rbhl")

Development version

remotes::install_github("ropensci/rbhl")
library("rbhl")

Output formats

You can output various formats using the as parameter, setting to table, list, json or xml.

The default is usually table:

bhl_authorsearch(name='dimmock')

list output

bhl_authorsearch(name='dimmock', as='list')$Result[[1]]

XML output

bhl_authorsearch(name='dimmock', as='xml')

JSON output

bhl_authorsearch(name='dimmock', as='json')

Get title metadata

bhl_gettitlemetadata(1726, items = TRUE, as = "list")$Result[[1]]$Items

Book search

bhl_publicationsearch('cocos island costa rica birds')

Get languages

bhl_getlanguages()

Meta



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