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 related to https://github.com/yihui/knitr/issues/1931 and correspond to what we have done in this book with `import_example` https://github.com/yihui/rmarkdown-cookbook/blob/c603380774226d50f3501c17124bcea335e0a764/utils.R#L1-L9 https://github.com/yihui/rmarkdown-cookbook/blob/c603380774226d50f3501c17124bcea335e0a764/12-output-hooks.Rmd#L99 I think this is missing and should be somewhere in the...

See https://github.com/rstudio/bookdown/issues/1272#issuecomment-951133433 It is a combination of https://bookdown.org/yihui/rmarkdown-cookbook/kable.html#generate-multiple-tables-from-a-for-loop and * bookdown.org/yihui/rmarkdown-cookbook/knit-expand.html * bookdown.org/yihui/rmarkdown-cookbook/child-document.html

Use `fvextra` package from CTAN ? https://github.com/rstudio/rmarkdown/issues/646#issuecomment-926583252

This is from https://github.com/rstudio/rmarkdown/issues/2198 and possible using a htmltools option ```r options(htmltools.dir.version = FALSE) ``` Could be worth mentioning here as a recipe.

Only providing a bibliography via `pandoc_args` does not trigger citeproc: ``````Rmd --- title: Test output: html_document: pandoc_args: --bibliography=bibliography.bib --- ```{cat, engine.opts=list(file = "bibliography.bib")} @Manual{Xie2020, title = {rmarkdown: Dynamic Documents for...

[Pandoc's default LaTeX template](https://github.com/jgm/pandoc-templates/blob/2.14.1/default.latex) is clever: Some packages–as of v2.14.1 "upquote", "microtype", "parskip", "xurl", "bookmark" and "footnotehyper"–will only be used if they are available (checked via `\IfFileExists`). This way, however,...

This should be improved here: https://bookdown.org/yihui/rmarkdown-cookbook/bibliography.html#include-appendix-after-bibliography ````markdown # References ::: {#refs} ::: # (APPENDIX) Appendix {-} # More information This will be Appendix A. # One more thing This will...

From info in this Twitter thread https://twitter.com/kraut0xa/status/1399469271676338181?s=21 This is the kind of information not obvious to find. Maybe there is room somewhere in the table chapter.

This will make the book build more easily and the example is not so popular I believe. We could make it a non executable one.

Hard to know for example how to add bookdown reference to caption in gt. Could be a good example