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

According to the authorities on [stackexchange](https://tex.stackexchange.com/questions/652253/howto-use-figure-placement-h-in-scrartcl) the advice on how to make figures appear in place in the LaTeX export (as given in [6.5.2 Prevent figures from floating](https://bookdown.org/yihui/rmarkdown-cookbook/figure-placement.html#prevent-figures-from-floating)) needs to...

i'm writing a manual and struggling with the reference part. i have a reference like: `(ref:a-reference) whatever` i want to show as verbatim how to use it: ```` ```{verbatim} I'm...

For the next guy who comes here via google, here is a version of the lua script adapted to support hex-style RGB colors, and yes it also works with vanilla...

documentation

In there: https://bookdown.org/yihui/rmarkdown-cookbook/results-asis.html Because it seems user can get confused with inline R expression: https://github.com/quarto-dev/quarto-cli/issues/1143#issuecomment-1156164849

* Showing how it works * Documenting `sql.show_interpolated` (https://community.rstudio.com/t/get-sql-code-from-sql-chunk-with-variables-evaluated/136982/11 and https://github.com/yihui/knitr/issues/2131 from https://github.com/yihui/knitr/pull/1357), https://github.com/rstudio/rmarkdown/issues/2505 * Demoing `glue_sql` engine from **glue** 📦 (https://glue.tidyverse.org/articles/engines.html) * New feature / option from https://github.com/yihui/knitr/pull/2128

documentation

The example https://bookdown.org/yihui/rmarkdown-cookbook/figure-placement.html#prevent-figures-from-floating failed for me with an error: unknown float option 'H' (writing that from memory so wording might be incorrect). However removing the "!" from fig.pos = !H...

e.g. https://twitter.com/search?q=rmarkdown%20min_faves%3A200&f=live

Talk somehow about how knitr can work with several input document pretty easily by using _patterns_ Included pattern are : ```r pat_rnw() pat_brew() pat_tex() pat_html() pat_md() pat_rst() pat_asciidoc() pat_textile() ```...

cover image works for epub document. For PDF document, some command must be passed between `\begin{document}` and `\maketitle` - this is not supported in the Pandoc template by default. One...

From a question on GH: https://github.com/rstudio/rmarkdown/issues/1829 This will work if you want to use the `\cancel` syntax ```md --- title: "assignment" author: "author" output: html_document --- $$ \require{cancel} \cancel{x} $$...