[R] Error when scan()ning dead URL's

Jonathan Croft OG1092 at hotmail.com
Mon Nov 15 14:33:28 CET 2004


Hi,

I often scan web pages directly into R using

scan('http://etc...','')

however this gives an error if the page/url doesn't exist, or the connection
to it is not available.
Is it possible to still use scan but have R return something other than an
error (which crashes code)
when the page or the connection isn't available.

Cheers

John Haynes




More information about the R-help mailing list