article_retrieval: ScienceDirect Article Retrieval

View source: R/article_retrieval.R

article_retrievalR Documentation

ScienceDirect Article Retrieval

Description

This function wraps generic_elsevier_api to give a retrieval of an article from the Elsevier Article Retrieval API

Usage

article_retrieval(
  id,
  view = c("META", "META_ABS", "META_ABS_REF", "FULL", "REF", "ENTITLED"),
  identifier = c("scopus_id", "eid", "doi", "pii", "pubmed_id"),
  http_end = NULL,
  ...
)

Arguments

id

Identifier for article

view

Which view to see. See https://dev.elsevier.com/guides/ArticleRetrievalViews.htm

identifier

Type of identifier to use

http_end

any additional end to http statement. See generic_elsevier_api

...

Arguments to be passed to generic_elsevier_api

Value

List of elements, similar to generic_elsevier_api

See Also

generic_elsevier_api

Examples

api_key = get_api_key(NULL, error = FALSE)
if (!is.null(api_key)){
    x = article_retrieval("S1053811915002700", identifier = "pii",
    verbose = FALSE, view = "FULL")
    gen = x$content$`full-text-retrieval-response`
    ot = gen$originalText
} else {
 x = article_retrieval("S1053811915002700",
   identifier = "pii",
   api_key_error = FALSE)
}

muschellij2/rscopus documentation built on Feb. 4, 2024, 10:40 p.m.