Learn R Programming

hackeRnews (version 0.1.0)

get_latest_show_stories: Hacker News latest show stories

Description

Retrieves latest show stories using Hacker News API

Usage

get_latest_show_stories(max_items = NULL)

Arguments

max_items

Maximum number of items to retrieve. If max_items = NULL, returns all available

Value

list of latest show HN stories

Details

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

Examples

Run this code
# NOT RUN {
# get the latest show story on Hacker News
latest_show_story <- get_latest_show_stories(max_items = 1)
latest_show_story

# }
# NOT RUN {
# 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
# }

Run the code above in your browser using DataLab