R/x_get_tag_types.R

#' List Tag Types
#'
#' DEPRECATED - USE ref_get. This function uses the \code{ListTagTypes} method
#' from the database API and returns a list of Tag Types and associated
#' metadata.
#'
#' @return Returns a data_frame (from the \code{tibble} package).
#'
#' @examples
#' \dontrun{
#' get_tag_types()
#' }
#'
#' @export
get_tag_types <- function() {
  .Deprecated("ref_get")

  ##### Call the API #####
  query_url <- "http://impact.ref.ac.uk/casestudiesapi/REFAPI.svc/ListTagTypes"
  tmp <- tibble::as_data_frame(jsonlite::fromJSON(query_url))

  return(tmp)

}

Try the refimpact package in your browser

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

refimpact documentation built on May 1, 2019, 8:47 p.m.