get_items_by_ids {hackeRnews} | R Documentation |
Get Hacker News by ids
Description
Retrieves items corresponding to specified list of ids using Hacker News API
Usage
get_items_by_ids(ids)
Arguments
ids |
list of ids |
Details
Parallel api requests can be enabled by running
future::plan(future::multiprocess)
Value
list of hn_item objects
See Also
https://github.com/HenrikBengtsson/future https://github.com/HenrikBengtsson/future.apply
Examples
# retrieve the first two items on Hacker News
items <- get_items_by_ids(c(1,2))
items
[Package hackeRnews version 0.1.0 Index]