ropensci/rcoreoa

Name: rcoreoa

Owner: rOpenSci

Description: CORE API R Client

Created: 2016-03-04 16:55:01.0

Updated: 2017-08-02 16:55:50.0

Pushed: 2017-11-25 00:08:23.0

Homepage:

Size: 91

Language: R

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

rcoreoa

Project Status: Active ? The project has reached a stable, usable state and is being actively developed. Build Status codecov.io rstudio mirror downloads cran version

CORE API R client

CORE API docs

CORE API - request access

CORE

“Aggregating the world's open access research papers”

CORE offers seamless access to millions of open access research papers, enrich the collected data for text-mining and provide unique services to the research community.

For more infos on CORE, see:

https://core.ac.uk/about

Install

Development version

ools::install_github("ropensci/rcoreoa")

ary("rcoreoa")
high- vs. low-level interfaces

Each function has a higher level interface that does HTTP request for data and parses the JSON using jsonlite. This is meant for those who want everything done for them, but there's a time penalty for as the parsing adds extra time. If you just want raw JSON unparsed text, you can use the low level interface.

The low level version of each function has _ at the end (e.g., core_search_), while the high level version doesn't have the _ (e.g., core_search).

The high level version of each function uses the low level method, and the low level method does all the logic and HTTP requesting, whereas the high level simply parses the output.

Search
_search(query = 'ecology', limit = 12)
status
1] "OK"

totalHits
1] 894153

data
     type             id
  journal issn:1005-264X
  journal issn:2287-8327
  journal issn:2193-3081
  journal issn:2351-9894
  journal issn:1472-6785
  journal issn:1712-6568
  journal issn:2008-9287
  journal issn:2356-6647
  journal issn:1687-9708
0 journal issn:1708-3087
1 journal issn:2299-1042
2 journal issn:2162-1985

_search_(query = 'ecology', limit = 12)
1] "{\"status\":\"OK\",\"totalHits\":894153,\"data\":[{\"type\":\"journal\",\"id\":\"issn:1005-264X\"},{\"type\":\"journal\",\"id\":\"issn:2287-8327\"},{\"type\":\"journal\",\"id\":\"issn:2193-3081\"},{\"type\":\"journal\",\"id\":\"issn:2351-9894\"},{\"type\":\"journal\",\"id\":\"issn:1472-6785\"},{\"type\":\"journal\",\"id\":\"issn:1712-6568\"},{\"type\":\"journal\",\"id\":\"issn:2008-9287\"},{\"type\":\"journal\",\"id\":\"issn:2356-6647\"},{\"type\":\"journal\",\"id\":\"issn:1687-9708\"},{\"type\":\"journal\",\"id\":\"issn:1708-3087\"},{\"type\":\"journal\",\"id\":\"issn:2299-1042\"},{\"type\":\"journal\",\"id\":\"issn:2162-1985\"}]}"
Advanced Search
y <- data.frame("all_of_the_words" = "data mining",
                "without_the_words" = "social science",
                "year_from" = "2013",
                "year_to" = "2014")

_advanced_search(query)
status
1] "OK"

totalHits
1] 18542

data
     type       id
  article 22642150
  article 22650635
  article 24006259
  article 23964816
  article 24074440
  article 22654775
  article 22625437
  article 23849064
  article 23723370
0 article 27624048

Articles

_articles(id = 21132995)
status
1] "OK"

data
data$id
1] "21132995"

data$authors
ist()


Aritcle history

_articles_history(id = '21132995')
status
1] "OK"

data
            datetime

Journals

_journals(id = '2167-8359')
status
1] "OK"

data
data$title
1] "PeerJ"

data$identifiers
1] "oai:doaj.org/journal:576e4d34b8bf461bb586f1e90d80d7cc"
2] "issn:2167-8359"                                       

Get PDFs

The _ for these methods means that you get a file path back to the PDF, while the high level version without the _ parses the pdf to text for you.

_articles_pdf_(11549557)
Contributors
Meta

ropensci


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.