Learn R Programming

hackeRnews (version 0.2.1)

get_new_stories: Hacker News newest stories

Description

Retrieves newest stories using Hacker News API

Usage

get_new_stories(max_items = NULL)

Value

list of new stories

Arguments

max_items

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

Examples

Run this code

# \donttest{
# 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
# }

Run the code above in your browser using DataLab