Dynamic R Markdown Document Generation

Helper functions designed to make dynamically generating R Markdown documents easier by providing a simple and tidy way to create report pieces, shape them to your data, and combine them for exporting into a single R Markdown document.


heddlr: Functional Programming Concepts for R Markdown Documents

Travis CIStatus CodecovCoverage CII BestPractices PackageLifecycle RepoStatus CRANVersion AppVeyor buildstatus

Heddlr hex badge

R Markdown is an incredible tool, allowing you to trivially create professional-quality HTML (and PDF and more) documents from simple Markdown documents. However, if those documents have sections which repeat multiple times for different slices of your data, you can wind up spending a lot of time copying and pasting parts of your document. This can make it tricky to update your documents if you decide you want to tweak pieces of your report, and can force you to spend a lot of time updating and double-checking your document if you’re trying to report on information from an changing data set.

heddlr seeks to address these challenges by providing tools to make your R Markdown DRYer (that is, don’t repeat yourself). By making it easier to dynamically piece together components of your document based on your data source, heddlr makes it easier for you to write cleaner documents and create your reports faster.

For examples of what this looks like, check out the intro vignette and the more involved example.

Installation

If the CRAN version badge above is green, you can install the released version of heddlr from CRAN with:

install.packages("heddlr")

You can always get the most up-to-date development version with:

# install.packages("devtools")
devtools::install_github("mikemahoney218/heddlr")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("heddlr")

0.6.0 by Michael Mahoney, 7 years ago


https://github.com/mikemahoney218/heddlr, https://mikemahoney218.github.io/heddlr/


Report a bug at https://github.com/mikemahoney218/heddlr/issues


Browse source code at https://github.com/cran/heddlr


Authors: Michael Mahoney [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports rlang, utf8, yaml

Suggests covr, here, rmarkdown, roxygen2, testthat, dplyr, tidyr, nycflights13, ggplot2, knitr, purrr


See at CRAN