Learn R Programming

newscatcheR (version 0.0.2)

get_headlines: Get headlines A helper function to get just the headlines of the feed

Description

Get headlines A helper function to get just the headlines of the feed

Usage

get_headlines(website = "news.ycombinator.com")

Arguments

website

a url of a new source in the format "news.ycombinator.com"

Value

a tibble containing the headlines contained in the feed

Examples

Run this code
# NOT RUN {
Sys.sleep(3) # adding a small time delay to avoid
# simultaneous posts to the API
get_headlines(website = "news.ycombinator.com")
# }

Run the code above in your browser using DataLab