#' Retrieve (a) Dataset(s) from BacDive
#'
#' @param id Mandatory character string or integer. The BacDive strain ID
#' whose data you want to retrieve.
#'
#' @return A (large) list containing either a single BacDive dataset in case
#' your parameter / search was unambiguous, or if ambiguous: all matching datasets.
#' Read [BacDive.DSMZ.de/api/bacdive](https://bacdive.dsmz.de/api/bacdive/)
#' to learn more.
#'
#' @export
#' @examples
#' dataset_717 <- bd_retrieve(id = 717)
#' dataset_717 <- bd_retrieve(id = "717")
#' @rdname bd_retrieve
bd_retrieve <- function(id) {
bd_retrieve_data(searchTerm = as.character(id), searchType = "bacdive_id")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.