R/occurrence_details.R

Defines functions occurrence_details

Documented in occurrence_details

#' Retrieve the full details of occurrence records
#'
#' Note that this makes a separate web request for each occurrence uuid, and so may not be wise to use on a large number of uuids.
#' 
#' @references Associated SBDI web service: \url{https://api.bioatlas.se/#ws102}
#' 
#' @param uuid string: one or more record ids, as returned by \code{\link{occurrences}} (in the \code{data$id} column)
#' @param verbose logical: show additional progress information? [default is set by sbdi_config()]
#' @return A named list (named by uuid), each element of which is a list containing the details for that uuid. This inner list will be empty if no match is found for the supplied uuid
#' @seealso \code{\link{occurrences}} \code{\link{sbdi_config}}
#' @examples
#' \dontrun{
#' s1 <- occurrence_details("4fce3968-c4b0-4083-8896-78d8f213d517")
#' str(s1,max.level=3)
#' }
#' @export occurrence_details
occurrence_details <- function(uuid, verbose = sbdi_config()$verbose) {
  
  ALA4R::occurrence_details(uuid, verbose)
  
}
bioatlas/r-functionality documentation built on Nov. 1, 2020, 3:42 a.m.