This is the classic ping, using ICMP packages. Only the system administrator can send ICMP packages, so we call out to the system's ping utility.
ping(
destination,
continuous = FALSE,
verbose = continuous,
count = 3L,
timeout = 1
)Vector of response times. NA means no response, in
milliseconds. Currently NAs are always at the end of the vector,
and not in their correct position.
ping("8.8.8.8")
#> [1] 9.69 8.64 8.66
ping("r-project.org")
#> [1] 122 118 118