Learn R Programming

rscopus (version 0.1.2)

generic_elsevier_api: Generic Elsevier Search

Description

Runs GET on generic Elsevier Search

Usage

generic_elsevier_api(query = NULL, type = c("search", "article", "entitlement", "recommendation", "object", "fragment", "abstract", "affiliation", "embase", "author", "serial", "nonserial", "subject", "holdings", "citation-count", "citations"), search_type = c("affiliation", "author", "scopus", "scidir", "scidir-object"), api_key = NULL, headers = NULL, content_type = c("content", "feedback"), root_http = "http://api.elsevier.com", http_end = NULL, verbose = TRUE, api_key_error = TRUE, ...)

Arguments

query
Query to run
search_type
Type of search if type = "search". See http://dev.elsevier.com/api_docs.html
api_key
Elsvier API key
headers
Headers passed to add_headers, passed to GET
content_type
Is the data content or feedback?
root_http
address to use for query
http_end
string to add to end of http specification (done using paste0)
verbose
Print messages from specification
api_key_error
Should there be an error if no API key?
...
Options passed to query for GET

Value

List of elements, content and the GET request

Examples

Run this code
## Not run: 
# query_string = "affil(hopkins)"
# # Use affiliation query
# s = generic_elsevier_api(query = query_string,
#                          type = "search", search_type = "affiliation",
#                          api_key = api_key)
# 
# # Use author query
# s = generic_elsevier_api(query = query_string,
# type = "search", search_type = "author",
# api_key = api_key)
# 
# # Query abstract by pii
# s = generic_elsevier_api(query = "",
#                       type = "abstract", http_end = "pii/S1053811915002700",
#                       api_key = api_key)
# ## End(Not run)

Run the code above in your browser using DataLab