getD1Object {dataone}R Documentation

Download a data object from the DataONE Federation.

Description

An object is download from the DataONE network for the identifier that is provided.

Usage

getD1Object(x, identifier, ...)

## S4 method for signature 'D1Client'
getD1Object(x, identifier)

Arguments

x

A D1Client instance

identifier

The identifier of the object to download from DataONE

...

(not yet used)

Value

A datapack:DataObject

See Also

D1Client class description.

Examples

## Not run:  
library(dataone)
d1c <- D1Client("PROD", "urn:node:KNB")
pid <- "solson.5.1"
dataObj <- getD1Object(d1c, pid)
data <- getData(dataObj)

## End(Not run)

[Package dataone version 2.2.2 Index]