R/hw_listsets.r

Defines functions hw_listsets

Documented in hw_listsets

#' Retrieve the set structure of Hindawi Publishing Corporation repository.
#'
#' @import OAIHarvester
#' @inheritParams hw_listmetadataformats
#' @author Scott Chamberlain \email{myrmecocystus@@gmail.com}
#' @examples \dontrun{
#' sets <- hw_listsets()
#' head(sets)
#' }
#' @export
hw_listsets <- function(url = "http://www.hindawi.com/oai-pmh/oai.aspx") 
{ 
	out <- oaih_list_sets(url, transform = FALSE)
	data.frame(
		setSpec = sapply(xpathApply(out, "//setSpec"), xmlValue),
		setName = sapply(xpathApply(out, "//setName"), xmlValue)
	)
}
ropensci/rhindawi documentation built on May 18, 2022, 6:40 p.m.