R/gethtml.R

Defines functions gethtml

gethtml <- function(url){
  repeat{
    ret <- try(rvest::read_html(url),silent=T)
    if('try-error' %in% class(ret)){
      next
    }else{
      html <- ret
      break
    }
  }
  return(html)
}

Try the GEInfo package in your browser

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

GEInfo documentation built on Jan. 11, 2022, 1:07 a.m.