id {oai} | R Documentation |
Identify the OAI-PMH service for each data provider.
Description
Identify the OAI-PMH service for each data provider.
Usage
id(url, as = "parsed", ...)
Arguments
url |
(character) OAI-PMH base url. Defaults to the URL for arXiv's OAI-PMH server (http://export.arxiv.org/oai2) or GBIF's OAI-PMH server (http://api.gbif.org/v1/oai-pmh/registry) |
as |
(character) What to return. One of "parsed" (default), or "raw" (raw text) |
... |
Curl options passed on to |
Examples
## Not run:
# arxiv
id("http://export.arxiv.org/oai2")
# GBIF - http://www.gbif.org/
id("http://api.gbif.org/v1/oai-pmh/registry")
# get back text instead of parsed
id("http://export.arxiv.org/oai2", as = "raw")
id("http://api.gbif.org/v1/oai-pmh/registry", as = "raw")
# curl options
library("httr")
id("http://export.arxiv.org/oai2", config = verbose())
## End(Not run)
[Package oai version 0.4.0 Index]