search_on_pubmed: Perform a search on PubMed

Description Usage Arguments Value References See Also Examples

View source: R/search_on_pubmed.R

Description

Create a bibliography-class from a query to PubMed

Usage

1
search_on_pubmed(search_string, max_to_get = 25, api_key = NULL)

Arguments

search_string

(character vector of length 1) that is used for querying PubMed (standard PubMed syntax, see reference for details).

max_to_get

Integer (>= 1): maximum number of records to retrieve. Note that, if they are not finished, a complete batch will be always retrieved; hence, more than max_to_get records will be retrieved Set it to Inf to be sure to retrieve all the possible results.

api_key

(character vector of length 1): user-specific API key to increase the limit of queries per second above three. You can obtain your key from NCBI (see https://ncbiinsights.ncbi.nlm.nih.gov/2017/11/02/new-api-keys-for-the-e-utilities/

Value

An object of class bibliography-class.

References

https://www.ncbi.nlm.nih.gov/books/NBK3827/#_pubmedhelp_Search_Field_Descriptions_and_

See Also

pubmed_search

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
    # This retrieve a (short) set of results
    search_on_pubmed("(machine learning) AND lanera[Author]")

    # More reults but retrieved just a few
    search_on_pubmed("machine learning", max_to_get = 200)

    # -> ATTENTION <- big ammount of reults here: 36296! (2019-12-22)
    search_on_pubmed("machine learning", max_to_get = Inf)

## End(Not run)

CorradoLanera/bibsearch documentation built on Jan. 1, 2020, 10:24 p.m.