Learn R Programming

hackeRnews (version 0.1.0)

get_items_by_ids: 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

Value

list of hn_item objects

Details

Parallel api requests can be enabled by running future::plan(future::multiprocess)

See Also

https://github.com/HenrikBengtsson/future https://github.com/HenrikBengtsson/future.apply

Examples

Run this code
# NOT RUN {
# retrieve the first two items on Hacker News
items <- get_items_by_ids(c(1,2))
items


# }

Run the code above in your browser using DataLab