Learn R Programming

hackeRnews (version 0.1.0)

get_latest_job_stories: Hacker News latest job stories

Description

Retrieves latest job stories using Hacker News API

Usage

get_latest_job_stories(max_items = NULL)

Arguments

max_items

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

Value

list of latest job stories

Details

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

Examples

Run this code
# NOT RUN {
# get the latest job story on Hacker News
latest_job_story <- get_latest_job_stories(max_items = 1)
latest_job_story

# }
# NOT RUN {
# get 10 latest job stories on Hacker News
latest_10_job_stories <- get_latest_job_stories(max_items = 10)
latest_10_job_stories

# get all latest job stories on Hacker News
latest_job_stories <- get_latest_job_stories()
latest_job_stories
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab