getEndpoint function

Return the URL endpoint for the DataONE Coordinating Node.

Return the URL endpoint for the DataONE Coordinating Node.

A D1Client object is associated with a DataONE Coordinating Node. This CN is either the production CN (from the "PROD" environment, the default), or a CN from one of the development environments ("STAGING", "SANDBOX", "DEV"). The base URL for the CN is returned.

getEndpoint(x, ...) ## S4 method for signature 'D1Client' getEndpoint(x)

Arguments

  • x: A D1Client object
  • ...: (Not yet used.)

Returns

A character vector containing the URL of the Coordinating Node

Examples

## Not run: cli <- D1Client("STAGING2", "urn:node:mnTestKNB") cnUrl <- getEndpoint(cli) ## End(Not run)

See Also

D1Clientclass description.

  • Maintainer: Matthew B. Jones
  • License: Apache License 2.0
  • Last published: 2022-06-10