Closed jcbailone closed 2 years ago
Hi @jcbailone thank you for your report. There has been an API change recently, which is implemented in the dev version on GitHub. Please update the {europepmc} package:
remotes::install_github("ropensci/europepmc")
I'll submit this version to CRAN soon.
Here's a reprex using your example with the current dev version on GitHub:
library(europepmc)
packageVersion("europepmc")
#> [1] '0.4.1'
epmc_search(query ="AUTHORID:0000-0003-1393-215X")
#> 39 records found, returning 39
#> # A tibble: 39 × 28
#> id source pmid pmcid doi title authorString journalTitle issue
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 34207908 MED 34207908 PMC82… 10.3… Smart… Merazzo KJ, … Diagnostics… 6
#> 2 33427446 MED 33427446 <NA> 10.1… Detec… Sánchez-Cano… ACS Sens 1
#> 3 29498271 MED 29498271 <NA> 10.1… NaNO<… López-Marzo … Anal Chem 6
#> 4 26155767 MED 26155767 <NA> 10.1… Rever… Herrasti Z, … Lab Chip 16
#> 5 24994664 MED 24994664 <NA> 10.1… Carbo… Herrasti Z, … Anal Bioana… 22
#> 6 31817657 MED 31817657 PMC69… 10.3… Compe… Montes-Cebri… Sensors (Ba… 24
#> 7 29254566 MED 29254566 <NA> 10.1… Using… Ben Ismail M… Anal Chim A… <NA>
#> 8 23601924 MED 23601924 PMC36… 10.1… Fast … Bedrina B, M… BMC Microbi… <NA>
#> 9 24482799 MED 24482799 <NA> 10.1… Elect… Herrasti Z, … Analyst 6
#> 10 26592620 MED 26592620 <NA> 10.1… Minia… Uria N, Abra… Talanta <NA>
#> # … with 29 more rows, and 19 more variables: journalVolume <chr>,
#> # pubYear <chr>, journalIssn <chr>, pubType <chr>, isOpenAccess <chr>,
#> # inEPMC <chr>, inPMC <chr>, hasPDF <chr>, hasBook <chr>, hasSuppl <chr>,
#> # citedByCount <int>, hasReferences <chr>, hasTextMinedTerms <chr>,
#> # hasDbCrossReferences <chr>, hasLabsLinks <chr>,
#> # hasTMAccessionNumbers <chr>, firstIndexDate <chr>,
#> # firstPublicationDate <chr>, pageInfo <chr>
Created on 2021-09-01 by the reprex package (v2.0.0)
Thank you for answering so quickly, now is working fine!!
Hello,
First of all thanks for your package.
I think there are an error when the function epmc_search try to retrieve all records. For example the next query has 39 results and when I try to get back all of then the functions fails:
But If I set a limit lesst than the number of records the functions works:
This is my sessionInfo:
Tell me if I can do something to help. =)