Determine the number of items available for (selective) harvesting in an OAI repository.
oaih_size(baseurl, from = NULL, until = NULL, set = NULL)
a character string giving the base URL of the repository.
character strings or Date or
POSIXt date/time objects giving
datestamps to be used as lower or upper bounds, respectively, for
datestamp-based selective harvesting (i.e., only consider records
with datestamps in the given range). If character, dates and times
must be encoded using ISO 8601 in either %F or
%FT%TZ format (see strptime
). The trailing
Z must be used when including time. OAI-PMH implies
UTC for data/time specifications.
a character vector giving the sets to be considered for
selective harvesting (i.e., only consider records in the given
sets), or NULL
.
A numeric giving the number of items available for (selective)
harvesting, or NA_real_
if the number could not be determined
without harvesting.
Determining the number of items without actually harvesting these is
only possible if the repository's flow control mechanism provides
resumptionToken
elements with completeListSize
attributes (see
http://www.openarchives.org/OAI/openarchivesprotocol.html), or
flow control is not applied when listing identifiers in the selected
range.
# NOT RUN {
oaih_size("http://www.jstatsoft.org/oai")
# }
Run the code above in your browser using DataLab