An R function to check if you are online…

R-online-function-check-Freakalytics-201503Whether you use R to access online databases in the cloud or want to scrape website data, it’s always better to check if you are online before throwing numerous error and warning messages. I wrote this function to work with no additional R packages required. Also, this function is fast and transparent about what occurs when you use it.

This function was developed and validated on R 3.1.2 in a Windows 8.1 environment. Enjoy!


 Subscribe to our newsletter

     Join the thousands who benefit from our
     newsletter, we promise to:
        + Send you valuable, exclusive content,
        + Never share your info, and
        + Offer you a simple way to unsubscribe.