generic_elsevier_api: Generic Elsevier Search

Description Usage Arguments Value Examples

View source: R/generic_elsevier_search.R

Description

Runs GET on generic Elsevier Search

Usage

1
2
3
4
5
6
7
8
9
generic_elsevier_api(query = NULL, type = c("search", "article",
  "entitlement", "recommendation", "object", "fragment", "abstract",
  "affiliation", "embase", "author", "serial", "nonserial", "subject",
  "holdings", "citation-count", "citations", "metadata", "ev",
  "ev_records", "analytics"), search_type = c("affiliation", "author",
  "scopus", "scidir", "scidir-object", "sciencedirect", "plumx"),
  api_key = NULL, headers = NULL, content_type = c("content",
  "feedback"), root_http = "https://api.elsevier.com", http_end = NULL,
  verbose = TRUE, api_key_error = TRUE, ...)

Arguments

query

Query to run, not overall query, but 'queryParam' query

type

Type of search. See https://dev.elsevier.com/api_docs.html

search_type

Type of search if type = "search". See https://dev.elsevier.com/api_docs.html

api_key

Elsevier 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 queryParam for GET

Value

List of elements, content and the GET request

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## 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,
                      verbose = FALSE)

# Use author query
s = generic_elsevier_api(query = query_string,
type = "search", search_type = "author",
api_key = api_key,
                      verbose = FALSE)

# Query abstract by pii
s = generic_elsevier_api(query = "",
                      type = "abstract", http_end = "pii/S1053811915002700",
                      api_key = api_key,
                      verbose = FALSE)

## End(Not run)

rscopus documentation built on Sept. 18, 2019, 1:03 a.m.