knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
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.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.