ping | R Documentation |
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
)
destination |
Host name or IP address. |
continuous |
Logical, whether to keep pinging until the user interrupts. |
verbose |
Whether to print progress on the screen while pinging. |
count |
Number of pings to perform. |
timeout |
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.
ping("8.8.8.8")
ping("r-project.org")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.