#' Requests clinicaltrials.gov API and Returns Response
#'
#' This function requests the official clinicaltrials.gov API and returns an unparsed
#' response.
#'
#' @param url A formatted string used to query the clinicaltrials.gov API
#' @keywords request url response
#' @export
#' @examples
#' request_ct(url)
request_ct <- function(url) {
# final formatting step remove spaces
final_url <- gsub(" ","+",url)
response <- httr::GET(final_url)
return(response)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.