oai (version 0.2.2)

count_identifiers: Count OAI-PMH identifiers for a data provider.

Description

Count OAI-PMH identifiers for a data provider.

Usage

count_identifiers(url = "http://oai.datacite.org/oai", prefix = "oai_dc",
  ...)

Arguments

url

(character) OAI-PMH base url

prefix

Specifies the metadata format that the records will be returned in.

...

Curl options passed on to GET

Details

Note that some OAI providers do not include the entry completeListSize (http://www.openarchives.org/OAI/openarchivesprotocol.html#FlowControl) in which case we return an NA - which does not mean 0, but rather we don't know.

Examples

Run this code
# NOT RUN {
count_identifiers()
count_identifiers(c(
 "http://oai.datacite.org/oai",
 "http://archivesic.ccsd.cnrs.fr/oai/oai.php",
 "http://www.hindawi.com/oai-pmh/oai.aspx"
))

# curl options
library("httr")
count_identifiers(config = verbose())
# }

Run the code above in your browser using DataLab