get_top_stories | R Documentation |
Retrieves top stories using Hacker News API
get_top_stories(max_items = NULL)
max_items |
Maximum number of items to retrieve. If max_items = NULL, returns all available stories |
List of top stories
# get the top story on Hacker News
top_story <- get_top_stories(max_items = 1)
top_story
# get all top stories on Hacker News
top_stories <- get_top_stories()
top_stories
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.