get_items_by_ids {hackeRnews} | R Documentation |
Retrieves items corresponding to specified list of ids using Hacker News API
get_items_by_ids(ids)
ids |
list of ids |
Parallel api requests can be enabled by running
future::plan(future::multiprocess)
list of hn_item objects
https://github.com/HenrikBengtsson/future https://github.com/HenrikBengtsson/future.apply
# retrieve the first two items on Hacker News
items <- get_items_by_ids(c(1,2))
items