ropensci / rentrez

talk with NCBI entrez using R
https://docs.ropensci.org/rentrez
Other
194 stars 38 forks source link

how to get more than 100 entries when using entrez_search #151

Closed HediaTnani closed 3 years ago

HediaTnani commented 4 years ago

Hi,

I'm using this package and I didn't figure out how to get more than 100 entries when using entrez_search. I tried removing the retmax argument but it didn't work.

Thanks a lot for your help.

maia-sh commented 3 years ago

Hi @HediaTnani,

You can change the value of the retmax parameter. For example:

library(rentrez)

entrez_search(db = "pubmed",
              term = "platypus",
              retmax = 200
)
#> Entrez search result with 773 hits (object contains 200 IDs and no web_history object)
#>  Search term (as translated):  "platypus"[MeSH Terms] OR "platypus"[All Fields]

Created on 2020-08-21 by the reprex package (v0.3.0)