R/idig_view_records.R

Defines functions fmt_view_txt_to_list idig_view_records

Documented in idig_view_records

##' View individual specimen records.
##'
##' View all information about a specific specimen record.
##' @title view specimen endpoint
##' @param uuid uuid of specimen record
##' @param ... additional parameters
##' @return nested list of data
##' @author Matthew Collins
##' @export
##'
idig_view_records <- function(uuid, ...) {
  view_results <- idig_GET(paste0("view/records/", uuid), ...)
  fmt_view_txt_to_list(view_results)
}

fmt_view_txt_to_list <- function(txt) {
  httr::content(txt)
}

Try the ridigbio package in your browser

Any scripts or data that you put into this service are public.

ridigbio documentation built on Oct. 1, 2024, 9:06 a.m.