knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Headlines as a list

Here's how to publish RSS data from sciencegeist.com as a list of headlines.

library(headliner)
library(dplyr)
data(sciencegeist)

sciencegeist %>% 
  head(10) %>%
  headlines(title = "Sciencegeist newsfeed",
            save_as = "headlines.html")

Please note: images are not shown in this layout.

Headlines as thumbnails

sciencegeist %>% 
  head(10) %>%
  headlines(title = "Sciencegeist newsfeed", 
            save_as = "headlines.html",
            layout = "card")

headliner also offers a PDF printout possibility.

sciencegeist %>% 
  head(10) %>% # 21 gives two erros: & in title and .gif
  headlines(title = "Sciencegeist newsfeed", 
            save_as = "headlines.pdf")


zambujo/headliner documentation built on Nov. 12, 2020, 6:35 p.m.