For testting, you have a testthat
helper to skip the test if offline. See testthat::skip_if_offline(host = "r-project.org")
I use it to check connectivity for a host before running the test code.
For testting, you have a testthat
helper to skip the test if offline. See testthat::skip_if_offline(host = "r-project.org")
I use it to check connectivity for a host before running the test code.