headliner
is a package to publish headlines’ data. In other words, it
provides a static generator for headlines. headliner
is ideal to
quickly publish and distribute RSS feeds, for instance.
The package is not yet on CRAN.
You can install the development version of headliner
from github
using:
# install.packages("devtools")
devtools::install_github("zambujo/headliner")
Use this example to publish the contents of a data frame:
library(headliner)
data(sciencegeist)
sciencegeist <- head(sciencegeist, 20)
headlines(sciencegeist,
title = "Sciencegeist newest posts",
save_as = "headlines.html",
layout = "card")
sciencegeist <- head(sciencegeist, 20)
headlines(sciencegeist,
title = "Sciencegeist newest posts",
save_as = "headlines.pdf")