rmarkdown-cookbook icon indicating copy to clipboard operation
rmarkdown-cookbook copied to clipboard

R Markdown Cookbook. A range of tips and tricks to make better use of R Markdown.

Results 80 rmarkdown-cookbook issues
Sort by recently updated
recently updated
newest added

This is from a tweet https://twitter.com/clauswilke/status/1303061232660996103?s=21 Add some examples regarding `github_document` Customization and how to create a specific md output format using pandoc format and extensions.

One reviewer suggested that we generalize this section: https://bookdown.org/yihui/rmarkdown-cookbook/center-heading.html > Before discussing CSS, it would be helpful to give the readers more context on how Markdown translated into different HTML...

The `subcaption` package is a modern replacement for the old and buggy `subfig` package. It would be great if the cookbook can provide users with ability to use the well-mainted...

Idea from @atusy in https://github.com/rstudio/rmarkdown/pull/2508 following the example shared in * https://github.com/rstudio/rmarkdown/pull/2507 ````yaml --- title: referring sections output: html_document: keep_md: true --- ```{cat, engine.opts=list(file = "example.lua")} local headers = {}...

From https://yihui.org/en/2023/10/opts-chunk/

Hi Yihui, I am currently writing a book with CRC Press, and I found a lot of advice in your posts and books. Thank you!!! Recently I had a problem...

https://github.com/yihui/knitr/issues/2290#issuecomment-1729758213 ````r knitr::opts_hooks$set(fig.cap = function(options) { if (is.null(options$fig.alt)) options$fig.alt = options$fig.cap options$fig.alt = xfun::strip_html(options$fig.alt) options }) ````

This could lead to error or silent problem. See for context and solution https://github.com/rstudio/rmarkdown/issues/2513

Greetings! I am trying out the option cache=TRUE to generate a tikz graphics file... all works as advertised as described in > https://bookdown.org/yihui/rmarkdown-cookbook/graphical-device.html > https://bookdown.org/yihui/rmarkdown-cookbook/fig-process.html#fig-process However, in the cookbook I...

In 9.6.3 it appears there is an error in the following code. The image appears outside of the blackbox not inside. Although I'm playing around to find a solution myself,...