get_best_stories {hackeRnews} | R Documentation |
Hacker News best stories
Description
Retrieves best stories using Hacker News API
Usage
get_best_stories(max_items = NULL)
Arguments
max_items |
Maximum number of items to retrieve. If max_items = NULL, returns all available |
Details
Parallel api requests can be enabled by running
future::plan(future::multiprocess)
Value
list of best stories
Examples
# get the best story on Hacker News
best_story <- get_best_stories(max_items = 1)
best_story
# get top 20 best stories on Hacker News
best_20_stories <- get_best_stories(max_items = 20)
best_20_stories
# get all best stories on Hacker News
best_stories <- get_best_stories()
best_stories
[Package hackeRnews version 0.1.0 Index]