Sometimes I need to download data from the internet. On occasions this has failed either because the website is down or because my computer has lost its internet connection.
Question: Is there some function in R which will return TRUE/FALSE as to whether I am connected to the internet?
question from:https://stackoverflow.com/questions/5076593/how-to-determine-if-you-have-an-internet-connection-in-r