Simple test for internet availability.
Usage
internetExists(verbose = getOption("Require.verbose"), force = FALSE)Arguments
- verbose
Numeric or logical indicating how verbose should the function be. If -1 or -2, then as little verbosity as possible. If 0 or FALSE, then minimal outputs; if
1or TRUE, more outputs;2even more. NOTE: inRequirefunction, whenverbose >= 2, also returns details as ifreturnDetails = TRUE(for backwards compatibility).- force
If
TRUE, probe even whenoptions("Require.checkInternet")isFALSE. Used at points where we're about to do real work (e.g., install dispatch) and a 2-second probe is cheap relative to the cost of failing late. Defaults toFALSEto preserve the no-probe default behaviour for all other call sites.