ropensci / rcrossref

R client for various CrossRef APIs
https://docs.ropensci.org/rcrossref
Other
165 stars 21 forks source link

support paid-for metadata plus subscription #213

Closed maxheld83 closed 1 year ago

maxheld83 commented 3 years ago

We're using now using a metadata plus (mdplus) subscription @subugoe and @njahn82 and myself wanted to contribute support for mdplus back upstream.

This is still a very early draft with lots (test, documentation) to be added; just wanted to log this here to show that it's being worked on.

I also have a couple of questions/ideas associated with mdplus support I'd love your feedback on @sckott and @njahn82 before I proceed. If you can, please let me know which of these (if any) you'd find worthwhile and would accept in the same (or separate?) PRs:

sckott commented 3 years ago

Thanks @maxheld83

In general I prefer PR's that are focused and smaller rather than less focused and larger. So I'd prefer unrelated topics in separate PRs

without_mdplus <- vcr::use_cassette("compare_response_headers_without_mdplus", {
    cr_abstract('10.1109/TASC.2010.2088091')
})
with_mdplus <- vcr::use_cassette("compare_response_headers_with_mdplus", {
    cr_abstract('10.1109/TASC.2010.2088091') # however that's triggered
})
# load the stored on disk http requests
w_o <- yaml::yaml.load_file(without_mdplus$file())
with <- yaml::yaml.load_file(with_mdplus$file()) 
# get to headers like
w_o$http_interactions[[1]]$response$headers
with$http_interactions[[1]]$response$headers