R/occurrence_details.R

#' 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 NBN web service: \url{https://api.nbnatlas.org/#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 nbn_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{nbn_config}}
#' @examples
#' \dontrun{
#' s1 <- occurrence_details("4fce3968-c4b0-4083-8896-78d8f213d517")
#' str(s1,max.level=3)
#' }
#' @export occurrence_details
occurrence_details <- function(uuid, verbose = nbn_config()$verbose) {
  
  ALA4R::occurrence_details(uuid, verbose)
  
}
fozy81/NBN4R documentation built on May 19, 2019, 8:22 a.m.