Learn R Programming

dataone (version 2.2.2)

D1Client: 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 ANY,ANY D1Client()

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

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

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

# S4 method for 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

Run this code
# NOT RUN {
cli <- D1Client("PROD", "urn:node:KNB")
cn <- CNode('STAGING2')
mn <- getMNode(cn,'urn:node:mnTestKNB')
cli <- D1Client(cn,mn)
# }

Run the code above in your browser using DataLab