powered by
Retrieves top stories using Hacker News API
get_top_stories(max_items = NULL)
List of top stories
Maximum number of items to retrieve. If max_items = NULL, returns all available stories
Parallel api requests can be enabled by running future::plan(future::multiprocess)
future::plan(future::multiprocess)
# get the top story on Hacker News top_story <- get_top_stories(max_items = 1) top_story # \donttest{ # get all top stories on Hacker News top_stories <- get_top_stories() top_stories # }
Run the code above in your browser using DataLab