Knitr

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Xieyihui (talk | contribs) at 16:19, 16 November 2016. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

knitr
Original author(s)Yihui Xie
Initial release17 January 2012 (2012-01-17)
Stable release
1.15 / 9 November 2016; 7 years ago (2016-11-09)
Repository
Written inR
TypeCross-platform
LicenseGNU GPL
Websiteyihui.name/knitr

knitr is an engine for dynamic report generation with R.[1][2] It is a package in the statistical programming language R that enables integration of R code into LaTeX, LyX, HTML, Markdown, AsciiDoc, and reStructuredText documents. The purpose of knitr is to allow reproducible research in R through the means of Literate Programming. It is licensed under the GNU General Public License.[3]

knitr was inspired by Sweave and written with a different design for better modularization, so it is easier to maintain and extend. Sweave can be regarded as a subset of knitr in the sense that all features of Sweave are also available in knitr. Some of knitr extensions include the R Markdown format[4] (used in reports published on RPubs[5]), caching, TikZ graphics and support to other languages such as Python, Perl, C++, Shell scripts and CoffeeScript, and so on.

knitr is officially supported in the RStudio IDE for R, LyX, Emacs/ESS and the Architect IDE for data science.

See also

References

  1. ^ Xie, Yihui (2015). Dynamic Documents with R and knitr, 2nd Edition. Chapman & Hall/CRC. ISBN 9781498716963.
  2. ^ Xie, Yihui. "knitr: A General-Purpose Tool for Dynamic Report Generation in R" (PDF).
  3. ^ https://cran.r-project.org/package=knitr
  4. ^ RStudio, Inc. "R Markdown — Dynamic Documents for R".
  5. ^ RStudio, Inc. "Easy web publishing from R".

External links