headlines: Build headline pages

Description Usage Arguments Value Examples

View source: R/build.R

Description

Build headline pages

Usage

1
headlines(.data, save_as, title = "Headlines", layout = "list")

Arguments

.data

A data frame, data frame extension (e.g. a tibble), or a lazy data frame. Expects the following string columns title (required), description, link, pub_date, and thumbnail.

save_as

A string with the output file name. Either .pdf and .html.

title

A string with the title of the headlines page.

layout

A string with the style layout. Pass "list" or "card".

Value

0

Examples

1
2
3
4
5
6
## Not run: 
data(sciencegeist)
sciencegeist <- utils::head(sciencegeist)
headlines(sciencegeist, "sciencegeist.html")

## End(Not run)

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