Simply put: if
x <- read.csv(url)
exists, then R will return the contents of that url. A good example, if you want to try it, might be "http://ichart.finance.yahoo.com/table.csv?s=IBM&a=00&b=1&c=2008&d=03&e=4&f=2014&g=d&ignore=.csv" . That particular url, if assigned to url and run as above, will load up a data.frame into x from the Yahoo website containing the past 5 years of IBM stock data.
But how to tell, beforehand, if any given url will get you 404'd ?
something like:
is.404.or.not(url)
or maybe
status(connect.to(url))
Thanks!