D1Client: The DataONE client class used to download, update and search...

D1ClientR Documentation

The DataONE client class used to download, update and search for data in the DataONE network.

Description

The DataONE client class used to download, update and search for data in the DataONE network.

Usage

D1Client(x, y, ...)

## S4 method for signature 'ANY,ANY'
D1Client()

## S4 method for signature 'character,ANY'
D1Client(x, y, ...)

## S4 method for signature 'character,character'
D1Client(x, y)

## S4 method for signature 'CNode,MNode'
D1Client(x, y, ...)

## S4 method for signature 'character,MNode'
D1Client(x, y, ...)

Arguments

x

The label for the DataONE environment to be using ('PROD','STAGING','SANDBOX','DEV'). This parameter can alternatively be a CNode instance, with the 'y' parameter specified as an MNode instance.

y

The node Id of the application's 'home' node. Should be already registered to the corresponding 'env'. This parameter can alternatively be an MNode instance, with the 'x' parameter specified as a CNode instance.

...

(not yet used)

Value

the D1Client object representing the DataONE environment

See Also

D1Client class description.

Examples

## Not run: 
cli <- D1Client("PROD", "urn:node:KNB")
cn <- CNode('STAGING2')
mn <- getMNode(cn,'urn:node:mnTestKNB')
cli <- D1Client(cn,mn)

## End(Not run)

dataone documentation built on June 11, 2022, 1:06 a.m.