R/comment_detail.R

Defines functions comment_detail

Documented in comment_detail

#' Get comment detail from TSN
#'
#' @export
#' @template tsn
#' @inheritParams accepted_names
#' @return A data.frame with results.
#' @examples \dontrun{
#' comment_detail(tsn=180543)
#' comment_detail(tsn=180543, wt = "xml")
#' }
comment_detail <- function(tsn, wt = "json", raw = FALSE, ...) {
  out <- itis_GET("getCommentDetailFromTSN", list(tsn = tsn), wt, ...)
  if (raw || wt == "xml") return(out)
  dr_op(tibble::as_tibble(parse_raw(out)$comments), "class")
}

Try the ritis package in your browser

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

ritis documentation built on Feb. 2, 2021, 9:06 a.m.