Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 1.79 KB

README.md

File metadata and controls

61 lines (45 loc) · 1.79 KB

headliner

License: MIT Lifecycle: maturing Travis build status R build status pkgdown knit README

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.

Installation

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")

Example

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")