KnitR: Difference between revisions

From Wikiversity
Jump to navigation Jump to search
Content deleted Content added
Alphabetized the categories.
m clean up; http->https (see this RfC) using AWB
Line 29: Line 29:
| website = {{URL|http://yihui.name/knitr}}
| website = {{URL|http://yihui.name/knitr}}
}}
}}
'''knitr''' is an engine for dynamic report generation with R.<ref>{{cite book|last=Xie|first=Yihui|title=Dynamic Documents with R and knitr, 2nd Edition|year=2015|publisher=Chapman & Hall/CRC|isbn=9781498716963|url=http://www.crcpress.com/product/isbn/9781498716963}}</ref><ref>{{cite web|last=Xie|first=Yihui|title=knitr: A General-Purpose Tool for Dynamic Report Generation in R|url=https://github.com/yihui/knitr/releases/download/doc/knitr-manual.pdf}}</ref> It is a package in the [[statistical]] programming language [[R (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]].<ref>http://cran.r-project.org/package=knitr</ref>
'''knitr''' is an engine for dynamic report generation with R.<ref>{{cite book|last=Xie|first=Yihui|title=Dynamic Documents with R and knitr, 2nd Edition|year=2015|publisher=Chapman & Hall/CRC|isbn=9781498716963|url=http://www.crcpress.com/product/isbn/9781498716963}}</ref><ref>{{cite web|last=Xie|first=Yihui|title=knitr: A General-Purpose Tool for Dynamic Report Generation in R|url=https://github.com/yihui/knitr/releases/download/doc/knitr-manual.pdf}}</ref> It is a package in the [[statistical]] programming language [[R (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]].<ref>https://cran.r-project.org/package=knitr</ref>


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<ref>{{cite web|last=RStudio, Inc|title=R Markdown — Dynamic Documents for R|url=http://rmarkdown.rstudio.com}}</ref> (used in reports published on RPubs<ref>{{cite web|last=RStudio, Inc|title=Easy web publishing from R|url=http://www.rpubs.com/}}</ref>), caching, [[TikZ]] graphics and support to other languages such as [[Python (programming language)|Python]], [[Perl]], [[C++]], [[Shell scripts]] and [[CoffeeScript]], and so on.
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<ref>{{cite web|last=RStudio, Inc|title=R Markdown — Dynamic Documents for R|url=http://rmarkdown.rstudio.com}}</ref> (used in reports published on RPubs<ref>{{cite web|last=RStudio, Inc|title=Easy web publishing from R|url=http://www.rpubs.com/}}</ref>), caching, [[TikZ]] graphics and support to other languages such as [[Python (programming language)|Python]], [[Perl]], [[C++]], [[Shell scripts]] and [[CoffeeScript]], and so on.


knitr is officially supported in the [[RStudio]] [[Integrated development environment|IDE]] for R, [[LyX]], [[Emacs Speaks Statistics|Emacs/ESS]] and the [[Architect_(software)|Architect]] [[Integrated development environment|IDE]] for data science.
knitr is officially supported in the [[RStudio]] [[Integrated development environment|IDE]] for R, [[LyX]], [[Emacs Speaks Statistics|Emacs/ESS]] and the [[Architect (software)|Architect]] [[Integrated development environment|IDE]] for data science.


==See also==
==See also==
Line 45: Line 45:
*[https://github.com/yihui/knitr Repository] on [[GitHub]]
*[https://github.com/yihui/knitr Repository] on [[GitHub]]
*[https://github.com/yihui/knitr-examples/ Example code] on [[GitHub]]
*[https://github.com/yihui/knitr-examples/ Example code] on [[GitHub]]
*[http://cran.r-project.org/package=knitr knitr package] on [[R (programming language)#Packages|CRAN]]
*[https://cran.r-project.org/package=knitr knitr package] on [[R (programming language)#Packages|CRAN]]


{{LaTeX navbox}}
{{LaTeX navbox}}
Line 54: Line 54:
[[Category:Literate programming]]
[[Category:Literate programming]]
[[Category:R (programming language)]]
[[Category:R (programming language)]]



{{programming-software-stub}}
{{programming-software-stub}}

Revision as of 21:28, 19 July 2016

OSI approvedYes or No or n/a
GPL compatibleYes or No
CopyleftYes or No or Partial

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. http://www.crcpress.com/product/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".

Template:LaTeX navbox


Template:Programming-software-stub