knitr: A general-purpose package for dynamic report generation in R

This package provides a general-purpose tool for dynamic report generation in R, which can be used to deal with any type of (plain text) files, including Sweave, HTML, Markdown, reStructuredText, AsciiDoc, and Textile. R code is evaluated as if it were copied and pasted in an R terminal thanks to the evaluate package (e.g., we do not need to explicitly print() plots from ggplot2 or lattice). R code can be reformatted by the formatR package so that long lines are automatically wrapped, with indent and spaces added, and comments preserved. A simple caching mechanism is provided to cache results from computations for the first time and the computations will be skipped the next time. Almost all common graphics devices, including those in base R and add-on packages like Cairo, cairoDevice and tikzDevice, are built-in with this package and it is straightforward to switch between devices without writing any special functions. The width and height as well as alignment of plots in the output document can be specified in chunk options (the size of plots for graphics devices is also supported). Multiple plots can be recorded in a single code chunk, and it is also allowed to rearrange plots to the end of a chunk or just keep the last plot. Warnings, messages and errors are written in the output document by default (can be turned off). The large collection of hooks in this package makes it possible for the user to control almost everything in the R code input and output. Hooks can be used either to format the output or to run R code fragments before or after a code chunk. The language in code chunks is not restricted to R (there is simple support to Python and shell scripts, etc). Many features are borrowed from or inspired by Sweave, cacheSweave, pgfSweave, brew and decumar.

Version: 1.6
Depends: R (≥ 2.14.1)
Imports: evaluate (≥ 0.5.3), digest, formatR (≥ 0.10), highr (≥ 0.3), markdown (≥ 0.6.5), stringr (≥ 0.6), tools
Suggests: testit, rgl, codetools, XML, RCurl
Published: 2014-05-25
Author: Adam Vogt [ctb], Alastair Andrew [ctb], Alex Zvoleff [ctb], Ashley Manton [ctb], Brian Diggs [ctb], Cassio Pereira [ctb], Fitch Simeon [ctb], Hadley Wickham [ctb], Heewon Jeon [ctb], Jeff Arnold [ctb], Jeremy Stephens [ctb], Jim Hester [ctb], Joe Cheng [ctb], Jonathan Keane [ctb], J.J. Allaire [ctb], Johan Toloe [ctb], Joseph Larmarange [ctb], Kirill Mueller [ctb], Kohske Takahashi [ctb], Michael Friendly [ctb], Michel Kuhlmann [ctb], Nacho Caballero [ctb], Nick Salkowski [ctb], Noam Ross [ctb], Ramnath Vaidyanathan [ctb], Richard Cotton [ctb], Romain Francois [ctb], Sietse Brouwer [ctb], Simon de Bernard [ctb], Taiyun Wei [ctb], Thibaut Lamadon [ctb], Tom Torsney-Weir [ctb], Trevor Davis [ctb], Weicheng Zhu [ctb], Wush Wu [ctb], Yihui Xie [aut, cre]
Maintainer: Yihui Xie <xie at yihui.name>
BugReports: https://github.com/yihui/knitr/issues
License: GPL-2 | GPL-3 [expanded from: GPL]
URL: http://yihui.name/knitr/
NeedsCompilation: no
Citation: knitr citation info
Materials: README NEWS
In views: ReproducibleResearch
CRAN checks: knitr results

Downloads:

Reference manual: knitr.pdf
Vignettes: Custom Print Methods
Not an Introduction to knitr
knitr Reference Card
Display Tables with the DataTables Library
Templating with knit_expand()
An R HTML Vignette with knitr
An R Markdown Vignette with knitr
R Markdown with the Docco Classic Style
R Markdown with the Docco Linear Style
Package source: knitr_1.6.tar.gz
Windows binaries: r-devel: knitr_1.6.zip, r-release: knitr_1.6.zip, r-oldrel: knitr_1.6.zip
OS X Snow Leopard binaries: r-release: knitr_1.6.tgz, r-oldrel: knitr_1.6.tgz
OS X Mavericks binaries: r-release: knitr_1.6.tgz
Old sources: knitr archive

Reverse dependencies:

Reverse depends: EasyHTMLReport, OutbreakTools, PopGenReport, sdcMicro, svSweave
Reverse imports: BEQI2, COPASutils, Kmisc, knitrBootstrap, opencpu, reports, ucbthesis, userfriendlyscience
Reverse suggests: additivityTests, agridat, alm, Anthropometry, argparse, ARPobservation, BayesFactor, BayesSingleSub, bbmle, bcpa, biom, bold, boostr, BrailleR, BTYD, causalsens, Causata, cda, ChemoSpec, choroplethr, coenocliner, corrplot, cosinor, DAAG, datacheck, dbmss, dendextend, devtools, doRNG, dplyr, ecoengine, eHOF, EpiModel, ESGtoolkit, expp, ExtDist, formatR, fslr, gamclass, ggplot2, ggvis, glarma, gMCP, googleVis, gsDesign, gstudio, hazus, hddplot, heatmap3, highr, HiveR, hSDM, httr, hysteresis, iBUGS, icd9, jsonlite, kitagawa, knitcitations, kyotil, learningr, lfe, lme4, localsolver, longpower, ltbayes, lubridate, magrittr, MALDIquant, MALDIquantForeign, mapmisc, markdown, MarkowitzR, mcprofile, memgene, metafolio, miniCRAN, mirt, miscset, mkin, monitoR, mosaic, MVN, mvnfast, nCal, networkreporting, nicheROVER, NlsyLinks, NMF, nplr, OLScurve, openxlsx, optiRum, optparse, OrgMassSpecR, ParallelForest, pathdiagram, pbo, pipeR, pitchRx, pkgmaker, planar, plspm, pollstR, poppr, poweRlaw, prospectr, PSAboot, psd, psData, pt, pumilioR, qdap, qqman, quipu, R2admb, R6, raincpc, rbhl, rbison, Rcmdr, RcppOctave, Rd2roxygen, rDVR, RefManageR, rfigshare, rgauges, rgbif, rite, rlist, rmongodb, RNeXML, rngtools, rnoaa, RODBCext, rotations, roxygen2, rpf, rplos, R.rsp, RSelenium, RSNPset, rspa, rWBclimate, rYoutheria, SCGLR, SharpeR, shiny, shotGroups, simPH, simTool, snplist, snp.plotter, snpStatsWriter, solr, sorvi, sotkanet, soundecology, spdynmod, spocc, ss3sim, survSNP, synlik, tabplot, taxize, tester, texmex, TiddlyWikiR, tidyr, tmap, TopKLists, transmission, turner, vegdata, Wats, WeightedCluster, wsrf, XNomial
Reverse enhances: htmltools