chart_data: chart_data

Description Usage Arguments Value Note

Description

convenience function for knitr chunks

Usage

1
chart_data(.data, warnOnError = FALSE)

Arguments

.data

A data frame suitable for readr::write_csv.

warnOnError

The function is designed not to error (to preserve portability). If the function is required to work, setting to TRUE.

Value

If knitting, writes a csv of its named as the current chunk label. Otherwise, returns .data invisibly.

Note

Use this in a knitr chunk that produces a chart to get the chart data.


HughParsonage/grattanCharts documentation built on May 8, 2019, 10:52 a.m.