A basic check for internet connectivity.
has_internet(url = "https://www.google.com")
character.
logical
# NOT RUN { has_internet() # }
Run the code above in your browser using DataCamp Workspace