R/getUrlResponse.R

#' Get response from url
#'
#' This function returns the string of a url response
#' @param string url
#' @return string response
#' @export
#' @import dplyr
#' @examples
#' getUrlResponse("https://www.pga.com")


getUrlResponse <- function(url){
    # input : url
    # output html repsponse for 
    html <- url %>%
        GET() %>%
        content(as="text")
    return(html)
}
cdepeuter/golf_analytics documentation built on May 13, 2019, 2:33 p.m.