you may 'try' to read the URL first (x=try(readLines(...))); then
check inherits(x, "try-error") to see if an error has occurred.
try() will not stop your code from being evaluated even if errors occur:
> for(i in 1:3){try(stop('error'))}
Error in try(stop("error")) : error
Error in try(stop("err
Dear all, I want to download webpage from a large number of webpage.
For example,
link <- c("http://gzbbs.soufun.com/board/2811006802/";,
"http://gzbbs.soufun.com/board/2811328226/";,
"http://gzbbs.soufun.com/board/2811720258/";,
"http://gzbbs.soufun.com/board/2811495702/";,
"http://gzbbs
2 matches
Mail list logo