#' List Institutions
#'
#' DEPRECATED - USE ref_get. This function uses the \code{ListInstitutions}
#' method from the database API and returns a list of institutions and
#' associated metadata, including the UKPRN.
#'
#' @return Returns a data_frame (from the \code{tibble} package).
#'
#' @examples
#' \dontrun{
#' get_institutions()
#' }
#'
#' @export
get_institutions <- function() {
.Deprecated("ref_get")
##### Call the API #####
query_url <- "http://impact.ref.ac.uk/casestudiesapi/REFAPI.svc/ListInstitutions"
tmp <- tibble::as_data_frame(jsonlite::fromJSON(query_url))
return(tmp)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.