Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in s2_papers #1

Open
doritge opened this issue Jun 9, 2020 · 1 comment
Open

Error in s2_papers #1

doritge opened this issue Jun 9, 2020 · 1 comment

Comments

@doritge
Copy link

doritge commented Jun 9, 2020

Hi,
a very useful package for me.
This call creates an error, while the paper exists:
docs <- s2_papers("8ea2d1c9370954797fc888bb6b86df0ba09e2afe")
While we are at it, could you also return: fieldsOfStudy, journalName, pdfUrls?
Thanks, Dorit

@njahn82
Copy link
Owner

njahn82 commented Jun 22, 2021

Please apologise my super late reply and thank you for the bug report. It should be fixed now. Please re-install the package.

library(semscholar)
s2_papers("8ea2d1c9370954797fc888bb6b86df0ba09e2afe")
#> # A tibble: 1 x 14
#>   abstract   arxiv_id authors  citation_veloci… citations doi   influential_cit…
#>   <chr>      <chr>    <list>              <int> <list>    <chr>            <int>
#> 1 This pape… <NA>     <tibble…                0 <tibble … 10.1…                0
#> # … with 7 more variables: paper_id <chr>, references <list>, title <chr>,
#> #   topics <list>, url <chr>, venue <chr>, year <int>

Created on 2021-06-22 by the reprex package (v2.0.0)

I'll take a look into the other metadata fields. At least, pdfUrls seems not to be exported by the Semantic Scholar API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants