getObject function

Get the bytes associated with an object on this Node.

Get the bytes associated with an object on this Node.

getObject(x, ...) ## S4 method for signature 'CNode' getObject(x, pid) ## S4 method for signature 'MNode' getObject(x, pid, check = as.logical(FALSE))

Arguments

  • x: The Node instance from which the pid will be downloaded
  • ...: (Not yet used).
  • pid: The identifier of the object to be downloaded
  • check: A logical value, if TRUE check if this object has been obsoleted by another object in DataONE.

Returns

the bytes of the object

Details

This operation acts as the 'public' anonymous user unless an X.509 certificate is present in the default location of the file system, in which case the access will be authenticated.

Examples

## Not run: library(dataone) cn <- CNode() mn <- getMNode(cn, "urn:node:KNB") pid <- "solson.5.1" obj <- getObject(mn, pid) df <- read.csv(text=rawToChar(obj)) ## End(Not run)

See Also

D1Node-class{D1Node}class description.

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