Skip to contents

Pure.

Usage

pubtator_parse_results(body)

Arguments

body

A parsed PubTator3 search/ response.

Value

A tibble of pmid, title, journal, authors (a list column, as an article has any number), year, and source_url. NULL when there are no results.

Examples

body <- list(results = list(list(
  pmid = 36197410,
  title = "TP53 or Not TP53",
  journal = "Clin Cancer Res"
)))
pubtator_parse_results(body)
#> # A tibble: 1 × 6
#>   pmid     title            journal         authors   year  source_url          
#>   <chr>    <chr>            <chr>           <list>    <chr> <chr>               
#> 1 36197410 TP53 or Not TP53 Clin Cancer Res <chr [0]> NA    https://pubmed.ncbi…