R/gethtml.R

#' Get raw html
#'
#' Retrieves the raw html response after passing the query string to the server
#'
#'@param myURL url string created by \code{\link{makeurl}} function
#'@return character string
#'@importFrom dplyr "%>%"
#'
gethtml<- function(myURL){
  rvest::read_html(myURL) %>%
    rvest::html_nodes("script") %>%
    .[[29]] %>%
    rvest::html_text()
}
kuhnrl30/LabCorp documentation built on May 20, 2019, 7:05 p.m.