Last chance! 50% off unlimited learning
Sale ends in
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
)
Host name or IP address.
Logical, whether to keep pinging until the user interrupts.
Whether to print progress on the screen while pinging.
Number of pings to perform.
Timeout for a ping response.
Vector of response times. NA
means no response, in
milliseconds. Currently NA
s are always at the end of the vector,
and not in their correct position.
# NOT RUN {
ping("8.8.8.8")
ping("r-project.org")
# }
Run the code above in your browser using DataLab