<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Knitr on rostrum.blog</title>
    <link>https://www.rostrum.blog/tags/knitr/</link>
    <description>Recent content in Knitr on rostrum.blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-gb</language>
    <lastBuildDate>Thu, 12 Mar 2020 00:00:00 +0000</lastBuildDate>
    
	<atom:link href="https://www.rostrum.blog/tags/knitr/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Iterate parameterised {xaringan} reports</title>
      <link>https://www.rostrum.blog/2020/03/12/knit-with-params/</link>
      <pubDate>Thu, 12 Mar 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2020/03/12/knit-with-params/</guid>
      <description>Driving a Wedge (via Giphy)  tl;dr You want to use R to generate multiple reports from a single template, each containing different data.
How? Create a parameterised RMarkdown template with a params YAML argument. Iterate over param values with rmarkdown::render() inside purrr::map().
I made a demo of this approach that focuses on parameterised {xaringan} slides. It includes a further {purrr} step with pagedown::chrome_print() to render the HTML outputs to PDF.</description>
    </item>
    
    <item>
      <title>Knitting Club: R Markdown for beginners</title>
      <link>https://www.rostrum.blog/2018/09/24/knitting-club/</link>
      <pubDate>Mon, 24 Sep 2018 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2018/09/24/knitting-club/</guid>
      <description>Knitting simulator by Kara Stone and Gabby DaRienzo (via Giphy)  tl;dr I made a couple of training resources about R Markdown for reproducibility:
 Knitting Club (see the slides or source) Quick R Markdown (see the slides or source).  Click the resource names to jump straight to those sections.
 Reproducibility It’s often important to recreate and verify prior work, as well as update it in future as data changes.</description>
    </item>
    
    <item>
      <title>Iterative R Markdown reports for Dawson&#39;s Creek</title>
      <link>https://www.rostrum.blog/2018/06/26/mail-merge/</link>
      <pubDate>Tue, 26 Jun 2018 00:00:00 +0000</pubDate>
      
      <guid>https://www.rostrum.blog/2018/06/26/mail-merge/</guid>
      <description>Dawson’s Creek’s Dawson leaks  tl;dr You have customer details. You want to send each person a personalised letter from a template. You want to mail merge, basically.1
This post shows how you can use R to iteratively produce separate Microsoft Word reports from a common template, each one with slightly different data. Here I use R Markdown and the {knitr} package to render a separate report about each episode of Dawson’s Creek (a classic use case!</description>
    </item>
    
  </channel>
</rss>