get_new_stories {hackeRnews}R Documentation

Hacker News newest stories

Description

Retrieves newest stories using Hacker News API

Usage

get_new_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 new stories

Examples

# get the newest story on Hacker News
newest_story <- get_new_stories(max_items = 1)
newest_story


# get all new stories on Hacker News
new_stories <- get_new_stories()
new_stories



[Package hackeRnews version 0.1.0 Index]