TeX

knitr-examples

A collection of knitr examples

Y

yihui

Dernière activité 22 sept. 2026
yihui/knitr-examples

486

étoiles

579

forks

13

issues ouvertes

examplesknitrlatexrr-markdown

Ce README est souvent en anglais.

knitr examples

This repository is a collection of knitr examples. It is both for my own test purpose and for other knitters to learn about this package.

For each input file, there is an output file, e.g. 001-minimal.Rmd corresponds to 001-minimal.md.

Integration tests

This repository is used to test knitr package. A special workflow inside Github Action in the knitr repo will checkout this repository and run the integration test again the dev version of knitr. The CI is triggered the following way:

  • When a push is made on main branch into knitr repository, the main branch of this repository will be retrieve
  • On PR to knitr, the head branch name of the PR will be retrieve and it will be checked if a branch with the same name exists in this repository. If so, then the specific branch will be the one used for the integration tests. Otherwise, the main branch will be used. This means that when a PR is opened on knitr, there could be often a companion PR inside this repository to adapt the test suites.

Limitations

When a PR is made from a fork, the integration will be run against the main branch. The workflow is yet to be improve to retrieve a specific external PR from this repo that is associated with a PR in knitr repo.

Resources

Projets similaires

A general-purpose tool for dynamic report generation in R

Rdynamic-documentsknitrliterate-programming
Yyihui
2,5 k étoiles877

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

RMarkdowncookbookhtmlknitr
Rrstudio
618 étoiles239

Dynamic Documents for R

Rliterate-programmingmarkdownpandoc
Rrstudio
3,1 k étoiles989