d1_get: d1_get

Description Usage Arguments Details Value Examples

Description

get data or metadata given an identifier

Usage

1
2
3
d1_get(id, action = c("object", "meta"),
  node = c("https://cn.dataone.org/cn/v1",
  "https://knb.ecoinformatics.org/knb/d1/mn/v1/"))

Arguments

id

the identifier of the object of interest

action

return the object itself ('object') or the system metadata ('meta')? Defaults to 'object'

node

the node url of the DataONE node. Be default, uses the central dataone.org node. Usually no need to adjust this.

Details

action should be object to download an object itself, including a metadata object (such as an EML xml file). meta allows access to system metadata.

Value

httr "response" object. Use httr function content to parse

Examples

1
2
3
4
## Not run: 
d1_get("doi:10.5063/AA/wolkovich.24.1")

## End(Not run)

cboettig/dataone-lite documentation built on May 13, 2019, 2:06 p.m.