ropensci / europepmc

R Interface to Europe PMC RESTful Web Service
https://docs.ropensci.org/europepmc
27 stars 8 forks source link

synonym search params does not work #15

Closed njahn82 closed 7 years ago

njahn82 commented 7 years ago

Compare:

europepmc::epmc_search("husbandry (cats AND dogs)", limit = 1000, verbose = FALSE, 
  synonym = TRUE)
#> # A tibble: 634 × 27
#>            id source      pmcid
#>         <chr>  <chr>      <chr>
#> 1  PMC5326547    PMC PMC5326547
#> 2    27884124    MED PMC5121978
#> 3    27956765    MED PMC5146294
#> 4    27766970    MED PMC5073862
#> 5    27890294    MED       <NA>
#> 6    27906124    MED PMC5131455
#> 7    27919269    MED PMC5139085
#> 8    27515099    MED       <NA>
#> 9    28068343    MED PMC5249249
#> 10 PMC5259818    PMC PMC5259818
#> # ... with 624 more rows, and 24 more variables: title <chr>,
#> #   authorString <chr>, journalTitle <chr>, 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>, epmcAuthMan <chr>, hasTMAccessionNumbers <chr>,
#> #   pmid <chr>, issue <chr>, pageInfo <chr>, doi <chr>
europepmc::epmc_search("husbandry (cats AND dogs)", limit = 1000, verbose = FALSE, 
  synonym = FALSE)
#> # A tibble: 634 × 28
#>            id source      pmcid
#>         <chr>  <chr>      <chr>
#> 1  PMC5326547    PMC PMC5326547
#> 2    27919269    MED PMC5139085
#> 3    28174740    MED PMC5247343
#> 4    27657139    MED PMC5035952
#> 5    27051200    MED PMC4819364
#> 6    27703984    MED PMC5040778
#> 7    27766970    MED PMC5073862
#> 8    27859751    MED PMC5115191
#> 9    27515099    MED       <NA>
#> 10   27018202    MED       <NA>
#> # ... with 624 more rows, and 25 more variables: title <chr>,
#> #   authorString <chr>, journalTitle <chr>, 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>, epmcAuthMan <chr>, hasTMAccessionNumbers <chr>,
#> #   pmid <chr>, issue <chr>, pageInfo <chr>, doi <chr>, bookid <chr>
njahn82 commented 7 years ago

still not working #17

njahn82 commented 7 years ago

should work now