get_items_by_ids: Get Hacker News by ids

Description Usage Arguments Details Value See Also Examples

View source: R/api.R

Description

Retrieves items corresponding to specified list of ids using Hacker News API

Usage

1

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

1
2
3
# retrieve the first two items on Hacker News
items <- get_items_by_ids(c(1,2))
items

hackeRnews documentation built on Dec. 16, 2019, 1:24 a.m.