knitr
1.52A General-Purpose Package for Dynamic Report Generation in R
Overview
Provides a general-purpose tool for dynamic report generation in R using Literate Programming techniques.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- ERROR12 OK, 1 ERROR2026-07-29
- OK13 OK2026-07-11
- ERROR12 OK, 1 ERROR2026-07-10
Show 5 earlier changesHide 5 earlier changes
- OK13 OK2026-07-01
- ERROR12 OK, 1 ERROR2026-06-29
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 76 (2 internal)includes a package overview page
- Examples that run
- 84%42 run in a plain check (1 of them under a condition) · 1 never run · 7 hold no code
- Exported functions with examples
- 66%
- Documented parameters
- 89%
- Return-value docs
- 64%
- Help pages citing references
- 43%
- An R HTML Vignette with knitr
- Custom Print Methods
- Display Tables with the JavaScript Library simple-datatables
- knitr Reference Card
- Not an Introduction to knitr
- R Markdown Vignettes with litedown
- R Markdown with the Docco Classic Style
- R Markdown with the Docco Linear Style
- Templating with knit_expand()
Downloads
Repository
- PRs merged (all time)
- 80%
- Median days to close, 50 most recently updated closed issues
- 1,538
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
12 development-tooling and community-health practices detected across 8 families in the upstream repository
Checks run against github.com/yihui/knitr on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Funding links: GitHub Sponsors
The repository owner accepts GitHub Sponsors
GitHub Pages site last deployed 2026-10-01
Show all practicesHide 4 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2026-03-20Seen in the repository: .github/copilot-instructions.md, .github/workflows/copilot-setup-steps.ymlPull request: opened by its own accountCommits: 4 by its own account · at least 4 crediting it in the message
- Claude Codefirst seen 2026-05-20Pull request it wrote: opened by a project memberCommits: at least 69 crediting it in the message
- Claude Opus 4.864 commits · Aug to Sep 2026
- Claude Opus 4.64 commits · May 2026
- Claude Sonnet 4.51 commit · Aug 2026
Dependencies
Installing knitr adds 4 packages (2 with compiled code, 381 KB of source tarballs). Heaviest: xfun 224 KB, yaml 106 KB, evaluate 38 KB.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 438 more dependents and 11,505 packages that suggest it on CRAN ↗
Code & Tests
People & History
Show 99 more contributorsHide 99 contributors
Show 8 peopleHide 8 people
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 3.0.3Latest
- 3.0.22013-08-10 · diff ↗
- 3.0.1
Show 76 earlier eventsHide 76 earlier events
- RR 3.0.0 released · 2013-04-03
- 2.15.32013-02-16 · diff ↗
- 2.15.22012-09-05 · diff ↗
- 2.15.12012-06-11 · diff ↗
- RR 2.15.0 released · 2012-03-30
- 2.15.0
- 2.14.22012-02-28 · diff ↗
- 1.52
- 1.512025-12-20 · diff ↗
- 1.50
- 1.492024-11-08 · diff ↗
- 1.482024-07-07 · diff ↗
- 1.472024-05-29 · diff ↗
- 1.462024-04-06 · diff ↗
- 1.452023-10-30 · diff ↗
- 1.44
- 1.432023-05-25 · diff ↗
- 1.422023-01-25 · diff ↗
- 1.412022-11-18 · diff ↗
- 1.40
- 1.392022-04-27 · diff ↗
- 1.38
- 1.372021-12-16 · diff ↗
- 1.362021-09-29 · diff ↗
- 1.352021-09-28 · diff ↗
- 1.342021-09-09 · diff ↗
- 1.33
- 1.322021-04-14 · diff ↗
- 1.31
- 1.302020-09-22 · diff ↗ ·
added 9 exports
hooks_asciidoc, hooks_html, hooks_jekyll, hooks_latex, hooks_listings, hooks_markdown, hooks_rst, hooks_sweave, hooks_textile - 1.29
- 1.282020-02-06 · diff ↗
- 1.272020-01-16 · diff ↗
- 1.262019-11-12 · diff ↗
- 1.252019-09-18 · diff ↗
- 1.242019-08-08 · diff ↗
- 1.23
- 1.222019-03-09 · diff ↗
- 1.21
- 1.202018-02-20 · diff ↗
- 1.192018-01-29 · diff ↗
- 1.18
- 1.172017-08-10 · diff ↗
- 1.16
- 1.15.1
- 1.15
- 1.14
- 1.132016-05-09 · diff ↗ ·
removed 1 export
eclipse_themeadded 4 exports
combine_words, include_app, include_url, knit_meta_add - 1.12.32016-01-22 · diff ↗
- 1.12
- 1.11
- 1.10.52015-05-06 · diff ↗
- 1.10
- 1.9
- 1.8
- 1.72014-10-13 · diff ↗
- 1.62014-05-25 · diff ↗ ·
added 10 exports
asis_output, current_input, hook_plot_textile, hook_purl, knit_meta, knit_print, normal_print, pat_textile, plot_crop, render_textile - 1.52013-09-28 · diff ↗
- 1.4.12013-08-12 · diff ↗
- 1.4
- 1.32013-07-15 · diff ↗ ·
added 5 exports
hook_plot_asciidoc, kable, knit_exit, pat_asciidoc, render_asciidoc - 1.22013-07-16 · diff ↗
- 1.1
- 1.0.52013-01-21 · diff ↗
- 1.02013-01-14 · diff ↗ ·
removed 1 export
knit_envadded 7 exports
Sweave2knitr, all_labels, hook_rjournal, knit_expand, knit_global, stitch_rhtml, stitch_rmd - 0.9
- 0.8
- 0.72012-07-17 · diff ↗ ·
added 10 exports
dep_auto, dep_prev, hook_ffmpeg_html, hook_optipng, hook_r2swf, hook_scianimator, image_uri, opts_template, rand_seed, rst2pdf - 0.6.32012-06-22 · diff ↗
- 0.6
- 0.52012-04-29 · diff ↗ ·
removed 1 export
render_gfmadded 7 exports
hook_plot_rst, knit2html, knit_engines, pat_md, pat_rst, render_rst, write_bib - 0.42012-04-29 · diff ↗
- 0.32012-02-28 · diff ↗ ·
added 8 exports
imgur_upload, pat_brew, pat_html, pat_rnw, pat_tex, render_listings, run_chunk, set_parent - 0.2
- 0.12012-01-17
- RR 2.14.0 released · 2011-10-31
Package metadata
- First published
- 2012-01-17
- Total releases
- 76 / 14 yrs
- License
- GPL
- Minimum R
- ≥ 3.6.0
- Download size
- 479 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("knitr")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.