get_latest_show_stories: Hacker News latest show stories

Description Usage Arguments Details Value Examples

View source: R/api.R

Description

Retrieves latest show stories using Hacker News API

Usage

1

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 latest show HN stories

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# get the latest show story on Hacker News
latest_show_story <- get_latest_show_stories(max_items = 1)
latest_show_story


# get 10 latest show stories on Hacker News
latest_10_show_stories <- get_latest_show_stories(max_items = 10)
latest_10_show_stories

# get all latest show stories on Hacker News
latest_show_stories <- get_latest_show_stories()
latest_show_stories

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