ping function

Test if a node is online and accepting DataONE requests

Test if a node is online and accepting DataONE requests

ping(x, ...) ## S4 method for signature 'D1Node' ping(x)

Arguments

  • x: The CNode or MNode to check
  • ...: (Not yet used)

Returns

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

## Not run: cn <- CNode() mn <- getMNode(cn, "urn:node:KNB") isAlive <- ping(mn) ## End(Not run)
  • Maintainer: Matthew B. Jones
  • License: Apache License 2.0
  • Last published: 2022-06-10