Description Usage Arguments Details References Examples
View source: R/core_articles_search.R
Search CORE articles
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | core_articles_search(
query,
metadata = TRUE,
fulltext = FALSE,
citations = FALSE,
similar = FALSE,
duplicate = FALSE,
urls = FALSE,
faithfulMetadata = FALSE,
page = 1,
limit = 10,
key = NULL,
parse = TRUE,
...
)
core_articles_search_(
query,
metadata = TRUE,
fulltext = FALSE,
citations = FALSE,
similar = FALSE,
duplicate = FALSE,
urls = FALSE,
faithfulMetadata = FALSE,
page = 1,
limit = 10,
key = NULL,
...
)
|
query |
(character) query string, required |
metadata |
(logical) Whether to retrieve the full article metadata or
only the ID. Default: |
fulltext |
(logical) Whether to retrieve full text of the article.
Default: |
citations |
(logical) Whether to retrieve citations found in the
article. Default: |
similar |
(logical) Whether to retrieve a list of similar articles.
Default: |
duplicate |
(logical) Whether to retrieve a list of CORE IDs of
different versions of the article. Default: |
urls |
(logical) Whether to retrieve a list of URLs from which the
article can be downloaded. This can include links to PDFs as well as
HTML pages. Default: |
faithfulMetadata |
(logical) Returns the records raw XML metadata
from the original repository. Default: |
page |
(character) page number (default: 1), optional |
limit |
(character) records to return (default: 10, minimum: 10, maximum: 100), optional |
key |
A CORE API key. Get one at
https://core.ac.uk/api-keys/register. Once you have the key,
you can pass it into this parameter, or as a much better option,
store your key as an environment variable with the name
|
parse |
(logical) Whether to parse to list ( |
... |
Curl options passed to |
core_articles_search
does the HTTP request and parses, while
core_articles_search_
just does the HTTP request, gives back JSON as a character
string
https://core.ac.uk/docs/#!/all/search
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
core_articles_search(query = 'ecology')
core_articles_search(query = 'ecology', parse = FALSE)
core_articles_search(query = 'ecology', limit = 12)
out = core_articles_search(query = 'ecology', fulltext = TRUE)
core_articles_search_(query = 'ecology')
jsonlite::fromJSON(core_articles_search_(query = 'ecology'))
# post request
query <- c('data mining', 'semantic web')
res <- core_articles_search(query)
head(res$data)
res$data[[2]]$doi
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.