Learn R Programming

dataone (version 2.2.2)

ping: Test if a node is online and accepting DataONE requests

Description

Test if a node is online and accepting DataONE requests

Usage

ping(x, ...)

# S4 method for D1Node ping(x)

Arguments

x

The CNode or MNode to check

...

(Not yet used)

Value

logical A logical value set to TRUE if the node is up and FALSE if it is not

logical A logical value set to TRUE if the node is up and FALSE if it is not

Examples

Run this code
# NOT RUN {
cn <- CNode()
mn <- getMNode(cn, "urn:node:KNB")
isAlive <- ping(mn)
# }

Run the code above in your browser using DataLab