R/pubtator.R
pubtator_parse_count.Rd
Pure. 0 is a real count and comes back as 0L; only an absent count is NA.
0
0L
count
NA
pubtator_parse_count(body)
A parsed PubTator3 search/ response.
search/
A single integer, or NA_integer_.
NA_integer_
pubtator_parse_count(list(count = 4180)) #> [1] 4180 pubtator_parse_count(list(count = 0)) #> [1] 0