Package: knitr 1.49.1

knitr: A General-Purpose Package for Dynamic Report Generation in R

Provides a general-purpose tool for dynamic report generation in R using Literate Programming techniques.

Authors:Yihui Xie [aut, cre], Abhraneel Sarma [ctb], Adam Vogt [ctb], Alastair Andrew [ctb], Alex Zvoleff [ctb], Amar Al-Zubaidi [ctb], Andre Simon [ctb], Aron Atkins [ctb], Aaron Wolen [ctb], Ashley Manton [ctb], Atsushi Yasumoto [ctb], Ben Baumer [ctb], Brian Diggs [ctb], Brian Zhang [ctb], Bulat Yapparov [ctb], Cassio Pereira [ctb], Christophe Dervieux [ctb], David Hall [ctb], David Hugh-Jones [ctb], David Robinson [ctb], Doug Hemken [ctb], Duncan Murdoch [ctb], Elio Campitelli [ctb], Ellis Hughes [ctb], Emily Riederer [ctb], Fabian Hirschmann [ctb], Fitch Simeon [ctb], Forest Fang [ctb], Frank E Harrell Jr [ctb], Garrick Aden-Buie [ctb], Gregoire Detrez [ctb], Hadley Wickham [ctb], Hao Zhu [ctb], Heewon Jeon [ctb], Henrik Bengtsson [ctb], Hiroaki Yutani [ctb], Ian Lyttle [ctb], Hodges Daniel [ctb], Jacob Bien [ctb], Jake Burkhead [ctb], James Manton [ctb], Jared Lander [ctb], Jason Punyon [ctb], Javier Luraschi [ctb], Jeff Arnold [ctb], Jenny Bryan [ctb], Jeremy Ashkenas [ctb, cph], Jeremy Stephens [ctb], Jim Hester [ctb], Joe Cheng [ctb], Johannes Ranke [ctb], John Honaker [ctb], John Muschelli [ctb], Jonathan Keane [ctb], JJ Allaire [ctb], Johan Toloe [ctb], Jonathan Sidi [ctb], Joseph Larmarange [ctb], Julien Barnier [ctb], Kaiyin Zhong [ctb], Kamil Slowikowski [ctb], Karl Forner [ctb], Kevin K. Smith [ctb], Kirill Mueller [ctb], Kohske Takahashi [ctb], Lorenz Walthert [ctb], Lucas Gallindo [ctb], Marius Hofert [ctb], Martin Modrák [ctb], Michael Chirico [ctb], Michael Friendly [ctb], Michal Bojanowski [ctb], Michel Kuhlmann [ctb], Miller Patrick [ctb], Nacho Caballero [ctb], Nick Salkowski [ctb], Niels Richard Hansen [ctb], Noam Ross [ctb], Obada Mahdi [ctb], Pavel N. Krivitsky [ctb], Pedro Faria [ctb], Qiang Li [ctb], Ramnath Vaidyanathan [ctb], Richard Cotton [ctb], Robert Krzyzanowski [ctb], Rodrigo Copetti [ctb], Romain Francois [ctb], Ruaridh Williamson [ctb], Sagiru Mati [ctb], Scott Kostyshak [ctb], Sebastian Meyer [ctb], Sietse Brouwer [ctb], Simon de Bernard [ctb], Sylvain Rousseau [ctb], Taiyun Wei [ctb], Thibaut Assus [ctb], Thibaut Lamadon [ctb], Thomas Leeper [ctb], Tim Mastny [ctb], Tom Torsney-Weir [ctb], Trevor Davis [ctb], Viktoras Veitas [ctb], Weicheng Zhu [ctb], Wush Wu [ctb], Zachary Foster [ctb], Zhian N. Kamvar [ctb], Posit Software, PBC [cph, fnd]

knitr_1.49.1.tar.gz
knitr_1.49.1.zip(r-4.5)knitr_1.49.1.zip(r-4.4)knitr_1.49.1.zip(r-4.3)
knitr_1.49.1.tgz(r-4.4-any)knitr_1.49.1.tgz(r-4.3-any)
knitr_1.49.1.tar.gz(r-4.5-noble)knitr_1.49.1.tar.gz(r-4.4-noble)
knitr_1.49.1.tgz(r-4.4-emscripten)knitr_1.49.1.tgz(r-4.3-emscripten)
knitr.pdf |knitr.html
knitr/json (API)
NEWS

# Install 'knitr' in R:
install.packages('knitr', repos = c('https://yihui.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/yihui/knitr/issues

On CRAN:

dynamic-documentsknitrliterate-programmingrmarkdownsweave

23.56 score 2.4k stars 4.1k packages 114k scripts 1.1M downloads 157 mentions 130 exports 4 dependencies

Last updated 1 months agofrom:4510c09120. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKDec 21 2024
R-4.5-winNOTEDec 21 2024
R-4.5-linuxNOTEDec 21 2024
R-4.4-winNOTEDec 21 2024
R-4.4-macNOTEDec 21 2024
R-4.3-winNOTEDec 21 2024
R-4.3-macNOTEDec 21 2024

Exports:all_labelsall_patternsall_rcpp_labelsasis_outputcache_enginesclean_cachecombine_wordsconvert_chunk_headercurrent_inputdep_autodep_prevdownload_imageengine_outputextract_raw_outputfig_chunkfig_pathhook_ffmpeg_htmlhook_gifskihook_mogrifyhook_movecodehook_optipnghook_pdfcrophook_plot_asciidochook_plot_customhook_plot_htmlhook_plot_mdhook_plot_rsthook_plot_texhook_plot_textilehook_pngquanthook_purlhook_r2swfhook_scianimatorhooks_asciidochooks_htmlhooks_jekyllhooks_latexhooks_listingshooks_markdownhooks_rsthooks_sweavehooks_textileimage_uriimgur_uploadinclude_appinclude_graphicsinclude_urlinline_expris_html_outputis_latex_outputis_low_changekablekablesknitknit_childknit_codeknit_enginesknit_exitknit_expandknit_filterknit_globalknit_hooksknit_metaknit_meta_addknit_paramsknit_params_yamlknit_patternsknit_printknit_rdknit_rd_allknit_themeknit_watchknit2htmlknit2pandocknit2pdfknit2wpload_cachenormal_printopts_chunkopts_currentopts_hooksopts_knitopts_templatepandocpandoc_frompandoc_topartition_chunkpat_asciidocpat_brewpat_htmlpat_mdpat_rnwpat_rstpat_texpat_textileplot_croppurlrand_seedraw_blockraw_htmlraw_latexraw_outputread_chunkread_demoread_rforgerender_asciidocrender_htmlrender_jekyllrender_latexrender_listingsrender_markdownrender_rstrender_sweaverender_textilerestore_raw_outputrnw2pdfroccorst2pdfset_aliasset_headerset_parentsewspinspin_childstitchstitch_rhtmlstitch_rmdSweave2knitrwrap_rmdwrite_bib

Dependencies:evaluatehighrxfunyaml

An R HTML Vignette with knitr

Rendered fromknitr-html.Rhtmlusingknitr::knitr_notangleon Dec 21 2024.

Last update: 2024-05-26
Started: 2013-07-15

Custom Print Methods

Rendered fromknit_print.Rmdusingknitr::knitr_notangleon Dec 21 2024.

Last update: 2024-09-19
Started: 2014-03-28

Display Tables with the JavaScript Library DataTables

Rendered fromdatatables.Rmdusinglitedown::vignetteon Dec 21 2024.

Last update: 2024-09-19
Started: 2013-07-15

knitr Reference Card

Rendered fromknitr-refcard.Rmdusinglitedown::vignetteon Dec 21 2024.

Last update: 2024-09-19
Started: 2014-04-11

Not An Introduction to knitr

Rendered fromknitr-intro.Rmdusinglitedown::vignetteon Dec 21 2024.

Last update: 2024-11-08
Started: 2014-04-11

R Markdown Vignettes with litedown

Rendered fromknitr-markdown.Rmdusinglitedown::vignetteon Dec 21 2024.

Last update: 2024-11-08
Started: 2013-07-15

R Markdown with the Docco Classic Style

Rendered fromdocco-classic.Rmdusingknitr::docco_classic_notangleon Dec 21 2024.

Last update: 2024-05-26
Started: 2013-09-28

R Markdown with the Docco Linear Style

Rendered fromdocco-linear.Rmdusingknitr::docco_linear_notangleon Dec 21 2024.

Last update: 2024-05-26
Started: 2013-09-28

Templating with knit_expand()

Rendered fromknit_expand.Rmdusinglitedown::vignetteon Dec 21 2024.

Last update: 2024-09-19
Started: 2013-07-15

Readme and manuals

Help Manual

Help pageTopics
A general-purpose tool for dynamic report generation in Rknitr-package knitr
Get all chunk labels in a documentall_labels all_rcpp_labels
All built-in patternsall_patterns
Mark an R object with a special classasis_output
Cache engines of other languagescache_engines
Clean cache files that are probably no longer neededclean_cache
Combine multiple words into a single stringcombine_words
Convert the in-header chunk option syntax to the in-body syntaxconvert_chunk_header
Query the current input filenamecurrent_input
Build automatic dependencies among chunksdep_auto
Make later chunks depend on previous chunksdep_prev
Download an image from the web and include it in a documentdownload_image
An output wrapper for language engine outputengine_output
Mark character strings as raw output that should not be convertedextract_raw_output raw_output restore_raw_output
Obtain the figure filenames for a chunkfig_chunk
Path for figure filesfig_path
Hooks to create animations in HTML outputhook_ffmpeg_html hook_gifski hook_r2swf hook_scianimator
Some potentially useful document hookshook_movecode
Built-in chunk hooks to extend knitrhook_mogrify hook_optipng hook_pdfcrop hook_plot_custom hook_pngquant hook_purl
Default plot hooks for different output formatshook_plot_asciidoc hook_plot_html hook_plot_md hook_plot_rst hook_plot_tex hook_plot_textile
Encode an image file to a data URIimage_uri
Embed external images in 'knitr' documentsinclude_graphics
Embed a URL as an HTML iframe or a screenshot in 'knitr' documentsinclude_app include_url
Wrap code using the inline R expression syntaxinline_expr
Check the current input and output typeis_html_output is_latex_output pandoc_from pandoc_to
Compare two recorded plotsis_low_change
Create tables in LaTeX, HTML, Markdown and reStructuredTextkable kables
Knit a documentknit purl
Knit a child documentknit_child
The code manager to manage code in all chunksknit_code
Engines of other languagesknit_engines
Exit knitting earlyknit_exit
A simple macro preprocessor for templating purposesknit_expand
Spell check filter for source documentsknit_filter
The global environment for evaluating codeknit_global
Hooks for R code chunks, inline R code and outputknit_hooks
Metadata about objects to be printedknit_meta knit_meta_add
Extract knit parameters from a documentknit_params
Extract knit parameters from YAML textknit_params_yaml
Patterns to match and extract R code in a documentknit_patterns
A custom printing functionknit_print normal_print
Knit package documentationknit_rd knit_rd_all
Syntax highlighting themesknit_theme
Watch an input file continuously and knit it when it is updatedknit_watch
Convert markdown to HTML using knit() and mark_html()knit2html
Convert various input files to various output files using 'knit()' and Pandocknit2pandoc
Convert Rnw or Rrst files to PDFknit2pdf
Knit an R Markdown document and post it to WordPressknit2wp
Load the cache database of a code chunkload_cache
Default and current chunk optionsopts_chunk opts_current
Hooks for code chunk optionsopts_hooks
Options for the knitr packageopts_knit
Template for creating reusable chunk optionsopts_template
A Pandoc wrapper to convert documents to other formatspandoc
Set regular expressions to read input documentspat_asciidoc pat_brew pat_html pat_md pat_rnw pat_rst pat_tex pat_textile
Crop a plot (remove the edges) using PDFCrop or ImageMagickplot_crop
An unevaluated expression to return .Random.seed if existsrand_seed
Mark character strings as raw blocks in R Markdownraw_block raw_html raw_latex
Read chunks from an external scriptread_chunk read_demo
Read source code from R-Forgeread_rforge
Set or get output hooks for different output formatshooks_asciidoc hooks_html hooks_jekyll hooks_latex hooks_listings hooks_markdown hooks_rst hooks_sweave hooks_textile render_asciidoc render_html render_jekyll render_latex render_listings render_markdown render_rst render_sweave render_textile
Convert an 'Rnw' document to PDFrnw2pdf
Knit R Markdown using the classic Docco stylerocco
A wrapper for rst2pdfrst2pdf
Set aliases for chunk optionsset_alias
Set the header informationset_header
Specify the parent document of child documentsset_parent
Wrap evaluated results for outputsew
Spin goat's hair into woolspin
Spin a child R scriptspin_child
Automatically create a report based on an R script and a templatestitch stitch_rhtml stitch_rmd
Convert Sweave to knitr documentsSweave2knitr
Package vignette enginesvignette_engines
Wrap long lines in Rmd fileswrap_rmd
Generate BibTeX bibliography databases for R packageswrite_bib