class: center, middle, inverse, title-slide # Boost Your R Markdown Skills ### Christophe Dervieux ### Raukr 2021 - 21/06/2021 --- # Who am I ? .subtitle[Short intro] .center[ .profile[![:scale 20%, profile picture for Christophe Dervieux](https://avatars.githubusercontent.com/u/6791940?v=4)] Christophe DERVIEUX • France RStudio • Software Engineer • R Markdown Team First Time Raukr Speaker ] </br> .pull-left[ .center[ .f2.color1[
]</br> [@cderv](https://github.com/cderv) ] ] .pull-right[ .center[ .f2.color1[
]</br> [@chrisderv](https://twitter.com/chrisderv) ] ] ??? --- # What are we talking today ? .pull-left.center[ ![:scale 75%, rmarkdown package logo](https://pkgs.rstudio.com/rmarkdown/reference/figures/logo.png) .f5[https://pkgs.rstudio.com/rmarkdown/] ] .pull-right.center[ ![:scale 55%, R Markdown Cookbook book cover](https://bookdown.org/yihui/rmarkdown-cookbook/images/cover.png) .f5[https://bookdown.org/yihui/rmarkdown-cookbook/] ] ??? Everyone should know rmarkdown among R users. Its principle has not changed since a long time (md + R = Rmd -> output format) quite easy to start (write text, add code chunk, compile) but it can be harder to learn new skill to be more efficient and get full power. That is where known recipes can help master more advanced skills. R Markdown Cookbook was thought as a non linear documentation. Also new logo and new pkgdown website --- layout: true # What happens when it renders ? --- .center[![:scale 75%, R Markdown wizard illustration by Alison Horst](rmarkdown_wizards.png)] .source-fig.center[Source: https://github.com/allisonhorst/stats-illustrations] ??? We often see these rmarkdown little wizard mixing Text & Code to produce document. Aim is to look deeper into this today. This is not so magic. It is juts percieved magic and there are tools to know about under the hood to be able to customize behavior further. --- .center[![:scale 80%, Diagram showing the different step of rendering, using knitr first from Rmd to md, then Pandoc from md to output format like HTML, DOC and PDF (using LaTeX)](https://bookdown.org/yihui/rmarkdown-cookbook/images/workflow.png)] .source-fig.center[ source: [R Markdown Cookbook](https://bookdown.org/yihui/rmarkdown-cookbook) ] .box.f3[`knitr::knit()` + Pandoc (+ LaTeX for PDF) = `rmarkdown::render()`] ??? rmarkdown will run Pandoc & knitr for you. LaTeX only needed with PDF. tinytex will run it for you. This is important to know all this because it helps know where to look and what could be tweak. one has to understand what to tweak to make something works as expected. --- layout: false # About the tools .subtitle[We got you covered!] * **rmarkdown** 📦 will install **knitr** and **tinytex** for you * _Pandoc_ is an external binary tool, .color1.underline[included] inside RStudio IDE. * _TinyTeX_ is the only thing to install if you want PDF output. (`tinytex::install_tinytex()`) .pull-left[ In case you need it: (.small[but you probably won't!]) * [Use another Pandoc version](https://bookdown.org/yihui/rmarkdown-cookbook/install-pandoc.html) (should never be necessary!) * [Install missing LaTeX package](https://bookdown.org/yihui/rmarkdown-cookbook/install-latex-pkgs.html) (should not be necessary as **tinytex** will do it for you at render) ] .pull-right[ ![](https://bookdown.org/yihui/rmarkdown-cookbook/images/workflow.png) .right[.small[source: [R Markdown Cookbook](https://bookdown.org/yihui/rmarkdown-cookbook)]] ] ??? Best to use TinyTeX as it is tested agains rmarkdown. Everything should work as expected otherwise. No special tool needed unless for advanced usage. Missing CTAN packages are installed by tinytex the R package. --- # Let's dive now ! .center[![:scale 60%, Illustration by Allison Horst about R Markdown being a band with Text playing the batterie, outputs singing and code plyaing the guitar!](https://github.com/allisonhorst/stats-illustrations/raw/master/rstats-artwork/rmarkdown_rockstar.png)] .source-fig.center[Source: https://github.com/allisonhorst/stats-illustrations] ??? Not sure the aim is to be a rockstar but for sure it is to make those three little guy playing together smoothly --- # How to boost content creation ? .center[![:scale 50%, Gif sayins Content is king with an illustration of a king at his desk in front of a computer with a crown dropping on his head. ](https://media.giphy.com/media/ymTxohR7QWdAOBuYtC/giphy.gif)] ??? First thing to focus one: Boost the content of the R Markdown. --- # Read external scripts into a chunk .subtitle[About the `code` chunk option (1)] .panelset[ .panel[.panel-name[in my_script.R] ```r add <- function(x, y) { x + y } ``` ] .panel[.panel-name[in your Rmd] ````markdown ```{r, code=xfun::read_utf8('my_script.R')} ``` ```` ] .panel[.panel-name[equivalent to] ````markdown ```{r} add <- function(x, y) { x + y } ``` ```` ] ] * This will fill the content of the chunk * Can be used with any engine * Can be used with multiple script ??? From Bookdown : https://bookdown.org/yihui/rmarkdown-cookbook/option-code.html Useful for bigger project, or when script already exists. --- # Chunk content from variable .subtitle[About the `code` chunk option (2)] Ex: Installation instruction for packages. ````markdown ```{r, include = FALSE} pkgs <- c("glue", "fs") installation_package <- sprintf('install.packages("%s")', pkgs) ``` *```{r, eval = FALSE, code = installation_package} ``` ```` renders without evaluating to ```r install.packages("glue") install.packages("fs") ``` ??? This is just an example and this can be done with any chunk option. It is quite powerful ! --- # Read code chunks from a script .subtitle[About `knitr::read_chunk()`] .panelset[ .panel[.panel-name[my_script.R] Use a special comment syntax to label code content. ```r ## ---- chunk-label ``` Ex in `my_chunks.R` ````r ## ---- my-chunk-a -------- 1 + 1 ## ---- my-chunk-b -------- plot(cars) ```` ] .panel[.panel-name[report.Rmd] ````markdown Read an external script to load chunks: ```{r, include=FALSE, cache=FALSE} *knitr::read_chunk('my_script.R') ``` Now the code can be used chunk by chunk, e.g., ```{r, my-chunk-a, echo=FALSE} ``` ```{r, my-chunk-b, fig.height=4} ``` ```` ] ] ??? Useful for: * sharing common part of code in a script * Store all R code in one R file * For bigger project often, or when script already exists. https://bookdown.org/yihui/rmarkdown-cookbook/read-chunk.html --- # Use Rmd child document .subtitle[About `child` chunk option] Load same content in several Rmd document ````markdown ```{r common-setup, include = FALSE, child = "_common.Rmd"} ``` ```` Conditionally include a content ````markdown Change `BOSS_MODE` to `TRUE` if this report is to be read by the boss: ```{r, include=FALSE} # variable impacting the rendering, which could be a parameter of a report BOSS_MODE <- FALSE ``` Conditionally include the appendix: *```{r, child=if (!BOSS_MODE) 'appendix.Rmd'} ``` ```` ??? This respect chunk option so could be useful for conditionnally eval or not a part of a document. Also useful to organize project in smaller pieces. https://bookdown.org/yihui/rmarkdown-cookbook/child-document.html --- # Dynamically create content .subtitle[About `knitr::knit_child()`</br>(and `result = 'asis'`)] .panelset[ .panel[ .panel-name[`template.Rmd`] ````markdown ## Regression on "`r x`" ```{r} lm(mpg ~ ., data = mtcars[, c("mpg", x)]) ``` ```` * We want to apply one linear regression between `mpg` and each of other variables of `mtcars` ```r # select other variables than 'mpg' x_vars <- setdiff(names(mtcars), 'mpg') ``` * We want the result to be included in .color2[its in own chapter]. ] .panel[.panel-name[`main.Rmd`] ````markdown *```{r, echo=FALSE, results='asis'} # select other variables than 'mpg' x_vars <- setdiff(names(mtcars), 'mpg') # knit the template for each res <- lapply(x_vars, function(x) { * knitr::knit_child('template.Rmd', envir = environment(), quiet = TRUE ) }) # cat() the knitted output to be included 'asis' *cat(unlist(res), sep = '\n') ``` ```` Can be combined with [`knitr::knit_expand()`](https://bookdown.org/yihui/rmarkdown-cookbook/knit-expand.html) ] .panel[.panel-name[without external file] ````markdown ```{r, echo=FALSE, results='asis'} x_vars <- setdiff(names(mtcars), 'mpg') res <- lapply(x_vars, function(x) { * knitr::knit_child(text = c( '## Regression on "`r x`"', '', '```{r}', 'lm(mpg ~ ., data = mtcars[, c("mpg", x)])', '```', '' ), envir = environment(), quiet = TRUE) }) cat(unlist(res), sep = '\n') ``` ```` ] ] ??? Quite like child document but a bit different. Can be useful sometimes for programatically create markdown content. https://bookdown.org/yihui/rmarkdown-cookbook/child-document.html --- # Reuse a chunk .subtitle[About chunk `label`] ````markdown Here is a code chunk that is not evaluated: *```{r, chunk-one, eval = FALSE} 1 + 1 2 + 2 ``` Now we actually evaluate it: *```{r, chunk-one, eval = TRUE} ``` ```` First chunk will be used twice - different options are allowed. ??? Reuse a figure, Show code in another place that the initial result, show figure in another place than where the plot has been evaluated. Recompute the same content. https://bookdown.org/yihui/rmarkdown-cookbook/reuse-chunks.html --- # Use labels to reference chunks .subtitle[About chunk `ref.label`] .panelset[ .panel[.panel-name[Rmd code] ````markdown ```{r chunk-b, echo = FALSE} # this is the chunk b 1 + 1 ``` ```{r chunk-c, echo = FALSE} # this is the chunk c 2 + 2 ``` *```{r chunk-a, ref.label = c('chunk-c', 'chunk-b'), eval = FALSE} ``` ```` ] .panel[.panel-name[`chunk-a` equivalent to] ````markdown ```{r chunk-a, eval = FALSE} # this is the chunk c 2 + 2 # this is the chunk b 1 + 1 ``` ```` ] .panel[.panel-name[knitted md output] ````markdown ``` ## [1] 2 ``` ``` ## [1] 4 ``` ```r # this is the chunk c 2 + 2 # this is the chunk b 1 + 1 ``` ```` ] ] ??? Yes chunk content can be combined. Could be useful to show code in appendix at the end of the document for example. https://bookdown.org/yihui/rmarkdown-cookbook/reuse-chunks.html --- # How to boost output styling ? .center[![:scale 65%, Gif of a man in a suits putting a a pink hat with included sunglasses. Text on the gif says 'You don't like my style', then 'Deal with it'](https://media.giphy.com/media/14o3gppq0mt2Lu/giphy.gif)] ??? Let's talk about styling content now. --- # Use CSS from inside a Rmd file .subtitle[About the `css` engine] ````markdown ```{css, echo = FALSE} /* add a blue border */ div.mybox { border-color: blue; border-style: solid; padding: 0.5em; } /* Set to blue bold text inside the box */ div.mybox strong { color: blue; } ``` ```` Applied directly in the Rmd document without an external css file Going further: See the [`js` engine](https://bookdown.org/yihui/rmarkdown-cookbook/details-tag.html) to apply JS code the same way ??? Useful for prototyping, for quick iteration, for single file example echo = false is important if you don't want to show CSS source chunk in output --- layout: true # Use SASS the same way .subtitle[About the `sass`/`scss` engine] --- ### What is SASS ? Sass (https://sass-lang.com) is a CSS extension language that allows you to create CSS rules in much more flexible ways than you would do with plain CSS. </br> </br> .center[![:scale 25%](https://sass-lang.com/assets/img/logos/logo-b6e1ef6e.svg)] It allows for variables, tweaking functions (called _mixins_), operations (like `/`), better CSS rule organisation (nesting, extensions, ...) and more. ??? External tool used by web developers. Very powerful and this is a skill to learn when doing a lot of HTML. It can do a lot ! But no need to use it directly. Still need to learn the feature and syntax. --- .panelset[ .panel[.panel-name[previous css] ````markdown ```{css, echo = FALSE} div.mybox { * border-color: blue; border-style: solid; padding: 0.5em; } div.mybox strong { * color: blue; } ``` ```` ] .panel[.panel-name[scss] ````markdown ```{scss, echo = FALSE} *$color1: blue; div { &.mybox { * border-color: $color1; border-style: solid; padding: 0.5em; strong { * color: $color1; } } } ``` ```` ] .panel[.panel-name[sass] ````markdown ```{sass, echo = FALSE} $color1: blue div &.mybox border-color: $color1 border-style: solid padding: 0.5em strong color: $color1 ``` ```` In both example, we are using special _SASS_ feature like [Nesting](https://sass-lang.com/documentation/style-rules/declarations#nesting) and [Parent Selector](https://sass-lang.com/documentation/style-rules/parent-selector). ] ] ??? The CSS is the one that would be render when using sass on the .scss or .sass file. No preference on the syntax - it is a personnal choice (and depending on environment.) --- layout: true # Use SASS the same way .subtitle[Powered by the new **sass** R 📦] --- .center[ ![:scale 25%](https://rstudio.github.io/sass/reference/figures/logo.svg) https://rstudio.github.io/sass/ </br> .box[Support is now built-in **rmarkdown**] ] ??? Quite new. Allow to use SASS from R. Wrapper around a C library. Supported in rmarkdown now. --- .panelset[ .panel[.panel-name[style.sass] ```sass $color1: blue div &.mybox border-color: $color1 border-style: solid padding: 0.5em strong color: $color1 ``` ] .panel[.panel-name[rendered CSS] ```r # Rendering SASS file from R sass::sass(sass::sass_file("style.sass")) ``` ```{.css} div.mybox { border-color: blue; border-style: solid; padding: 0.5em; } div.mybox strong { color: blue; } ``` ] ] ??? Small intro. Best is to look at the pkgdown website. --- External `.sass` / `.scss` file can also be passed in the `css` argument of `html_document()` </br> ````yaml output: html_document: css: custom-style.scss ```` The file will be processed internally by `sass::sass_file()` and produce a `.css` automatically. ??? You can do much more with SASS. It pushes the limit of customization of a document. How to use it ? Why this CSS example ? --- layout: true # Use custom blocks to style .subtitle[Powered by Pandoc's fenced divs syntax] --- ```markdown ::: mybox Special **important** content ::: ``` <style type="text/css"> .mybox-demo { border-color: blue; border-style: solid; padding: 0.5em; } .mybox-demo strong { color: blue; } </style> With the previous style applied, it will result in this box in the document </br></br> .mybox-demo[ Special **important** content ] </br></br> ```html <div class="mybox"> <p>Special <strong>important</strong> content</p> </div> ``` ??? Pandoc feature. R Markdown knows and extend it. Quite simple to write but quite powerful. Supported by Visual editor. --- Attributes and id can be added too, e.g ```markdown ::: {.mybox #box1 style="text-align: center;"} Special **important** content ::: ``` The above add inline style to the div </br></br> .center.mybox-demo[ Special **important** content ] </br></br> ```html <div id="box1" class="mybox" style="text-align: center;"> <p>Special <strong>important</strong> content</p> </div> ``` ??? Allow to style mainly. --- layout: true # Aiming multi formats .subtitle[About **rmarkdown** custom blocks for PDF support] --- .panelset[ .panel[.panel-name[Support of latex] ```markdown ::: {.mybox latex=true} Special **important** content ::: ``` ] .panel[.panel-name[will output in LaTeX] ```latex \begin{mybox} Special \textbf{important} content \end{mybox} ``` ] ] Specially supported by R Markdown and not Pandoc. .box[Create a LaTeX environment as easily as you can create a HTML div.] ??? Extend the Pandoc feature for LaTeX environment. Not done by default in Pandoc. Special feature of rmarkdown. --- This requires a LaTeX preamble for this custom environment to render to PDF, e.g using `tcolorbox` CTAN package. ```latex \usepackage{tcolorbox} \newtcolorbox{mybox}{ colframe=blue, halign=center, boxsep=5pt, arc=4pt} ``` To pass to the output format, e.g ```yaml output: pdf_document: includes: in_header: preamble.tex ``` ??? Could also be added in a file directly obviously. --- Using the `cat` engine can help you write the preamble from within the Rmd file ````markdown ```{cat, engine.opts = list(file = 'preamble.tex')} \usepackage{tcolorbox} \newtcolorbox{mybox}{ colframe=blue, halign=center, boxsep=5pt, arc=4pt} ``` ```` This will result in the PDF as this box <img src="index_files/figure-html/box-preview-1.png" width="1011" /> ??? Just for showing cat engine usage here; And try texPreview in source file --- layout: false class: middle .center[ ![:scale 55%, Gif with an image from The Fresh Prince of Bel-Air wearing a pink hat and in a position of thinking with right hand of its chin. Text has been added and says 'But what about the blue bold text ?'](but-why-not-blue2.gif) LaTeX customization is a topic for another time ! 🙄 ] --- layout: false # What we've learn so far ? .subtitle[Let's sum up!] ## Create content without repeating yourself * .color2[**Import code chunk content**] from a script or from a variable * .color2[**Use Rmd child document**] to share content in several places * .color2[**Reuse some chunks**] several times ## Customize output style * .color2[**Customize HTML output**] using CSS and SASS code * .color2[**Create and style custom blocks**] for HTML and PDF allowing better customization --- # How to go further ? .subtitle[and boost even more your skills !] .pull-left.center[ ## Look at examples Xaringan Source + Demo file in </br> .f2.color1[
] [cderv/raukr-2021-rmd-boost](https://github.com/cderv/raukr-2021-rmd-boost) </br></br></br> Or quickly try with [![](https://img.shields.io/badge/RStudio%20Cloud-Open%20project-4D8DC9?style=for-the-badge&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAYFBMVEX////4+/3s8/rj7ffc6PXV5PPR4fLN3/HI3PDy9/u/1u2nx+eTu+KDst91qttqpNlspdlvp9q0z+p6rdzl7viRuuGdweTA1+3B1+2ixOaDst6NuOG40uuwzOl8rt3///8K6tVwAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAHdElNRQflBhUMMjHXbt+zAAAKNUlEQVR42u1dabeqOgy9IJMItHXgKKj//2c+JrVlskNC4Zy3P5271l21m6ZJmibpv3//AwiOu/P8IIyiKAx8b+c6ticEhf0uiA9JmhFCaAVWo/6j+neWJoc42O1tT1EfbnBMTpSwilY2joosI/SUHAPX9mSV4cVJRtgktT5RRrIk9mxPWhrn+DKzbpM0KxG+xGfbk/8KJ8zrtVNk91lMkuXhinWQEybqazeyN5OVkvQT2X0nsS8T3zadPtxjtfVA6L12JTuuSb96CYGk15EkyVq0a5Qi8Gs5ppFtchXijKLQa0GzH8v8rhnO8nELmV0t8ovQ+bUcbcmql2LKJw+a2jAe7oUsxK8GuSxuOw5I+nMKjBwW5RcAeS9KHFmwGL99sqSAfkCShU7LPwsLKLeMZAnr6FyW0qBjoBf0Y4eNHSgsI/ZuvNnZgTzIDZHffjEbPwdaoCkcH/QIqA9GkVyco30JfYEcMQgma5DQF2gCzs8p1iGhL7AC2Gy4i5yTlCieQH3x3dr41aA7OILemrYgRxEsUuWvR4mKIEBWI1grwYoiiAu3YoIwFFcroh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3CKAZdQ2wWbeSLA9NyDM6DnIMmNrmO0j/DsWcdZYIeW1LIkv/bxx81kXwZee7Ft8BknE90eRNvlM0AcSLwWiJiXjQ+J9i42/USLzNtnvf2fm978V9Afee/oDb3Zt9t21H1mCGzWKSo/mblKfqtWPr/rJ+HGoPiQP3mYEG1TiPTIR6bYElaWqBP/Ae8DbOkfpvOn8B97l/gNvq2/G8CuZehEOcrU8EE7aBDeiUJlrwPDfef0UqUTcYg7ovTlMQWTzeLZK0Zzgyp1wVXd7cxRhCK7Yf9Pz1caA0jrDHNLJghLYrdFosJ05sQ9cuIdQofidjAz9EM7KfFRWqvee/IZkTZtR/zQxB5T+onogR3M6Y/BXIqjM/GXeKexXEZ6iqUZMRhqIbSplQZTDhmoIdPLMAMEYkKM2jX1pU6fSC6aEvnDFbDg6v4Dkaj59qWW82NmNZJEFbGFjNy6wA3k4h4VFlRGZLAtQnMslRZWUhvEmLfjpUlqVpmhOzBdEpyU40lNkPlV9jhk2R5rZ5Ie/jnbX74WgQNKrjBSLGogZeAkCR0YSwEiTMdwjA+0+Xo12BI7DmMPPKRBJRmluyzzMwwkTauzOVfSSED7KBEgyzwz2JCNZvmZ6HXb3gqqvJau2XnEHDfJiwvHvSUZk687qZvtZcvfXv3g9uME9fzIys57N20/smd+D1elNeThn//rI04yQiiql7fMIFap/Z0X+uPrnza3cJFV35/lBGEVRGPjezv01xOzjPyLwudq7aWA3AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTA2LTIxVDEyOjQzOjE0KzAwOjAwYmSwRgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wNi0yMVQxMjo0MzoxNCswMDowMBM5CPoAAAAASUVORK5CYII=)](https://rstudio.cloud/project/2654845) https://rstudio.cloud/project/2654845 ] .pull-right[ ## More in the book .center[ ![:scale 40%](https://bookdown.org/yihui/rmarkdown-cookbook/images/cover.png) .source-fig[https://bookdown.org/yihui/rmarkdown-cookbook/] ] ] ??? Special demo file contains part of what we saw but also other recipes from the cookbook. --- class: center middle # Thank you ! .f2.color1[
]</br>https://github.com/cderv/raukr-2021-rmd-boost --- class: annexe count: false # Acknowledgement * Emily Riederer and Yihui Xie for the R Markdown Cookbook * Allison Horst for the illustrations. * [@yonicd](https://github.com/yonicd) for the [**texPreview**](https://yonicd.github.io/texPreview/index.html) 📦 * [@cpsievert](https://github.com/cpsievert) for the [**sass**](https://rstudio.github.io/sass/) 📦 * https://tenor.com for the GIF.