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