render_stream: Render a Feedly Stream Data Frame to RMarkdown

Description Usage Arguments Value Note

View source: R/render-stream.R

Description

This function takes a minimalist approach to formatting an R Markdown document from the contents of a Feedly stream. It uses the feed item title, URL (first alternate one), published data and summary content to make each entry.

Usage

1
2
3
4
5
6
7
render_stream(
  feedly_stream,
  title = "Feedly Stream Summary",
  include_visual = FALSE,
  browse = FALSE,
  quiet = TRUE
)

Arguments

feedly_stream

output from feedly_stream(). Ideally, you'll filter this so it has a minimal number of elements (unless you like scrolling through large HTML documents)

title

A title for your "report"

include_visual

if TRUE then any visual_url image content will be rendered with the summary text. Default is FALSE.

browse

if TRUE open the HTML document for viewing. Default is FALSE

quiet

passed on to rmarkdown::render(). Default is TRUE.

Value

a list with the contents of the R Markdown document and the rendered HTML file (so you can save/tweak before publishing).

Note

This function requires that htmltools, rmarkdown and glue are installed on your system.


hrbrmstr/seymour documentation built on Jan. 24, 2020, 11:27 a.m.