Learn R Programming

dataone (version 2.2.2)

resolve: Get a list of coordinating nodes holding a given pid.

Description

Returns a list of nodes (MNs or CNs) known to hold copies of the object identified by id.

Usage

resolve(x, ...)

# S4 method for CNode resolve(x, pid)

Arguments

x

a valid CNode object

...

Additional arguments (not yet used).

pid

the id of the identified object

Value

A list of URLs that the object can be downloaded from, or NULL if the object is not found.

Examples

Run this code
# NOT RUN {
library(dataone)
cn <- CNode("STAGING")
id <- "doi:10.6073/pasta/9a27a1615e8e4c366ad09fefbfa2fced"
locations <- resolve(cn,id)
# }

Run the code above in your browser using DataLab