Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

a collection of knitr examples

branch: master
Octocat-spinner-32 .gitignore add the RStudio project file January 24, 2014
Octocat-spinner-32 001-minimal.Rmd no longer uses imgur_upload(); all images are uploaded to r-forge ins… November 06, 2012
Octocat-spinner-32 001-minimal.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 002-minimal.Rnw use T1 font encoding to avoid possible weirdness like <> being weird … October 01, 2013
Octocat-spinner-32 002-minimal.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 003-minimal.Rhtml closes #31: you must install rgl to compile this example April 18, 2014
Octocat-spinner-32 003-minimal.html closes #31: you must install rgl to compile this example April 18, 2014
Octocat-spinner-32 004-minimal.brew clarify the difference between brew and knitr's brew; closes #12 June 20, 2013
Octocat-spinner-32 004-minimal.txt make June 20, 2013
Octocat-spinner-32 005-latex.Rtex Use $\geq$ instead of >= January 26, 2013
Octocat-spinner-32 005-latex.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 006-minimal.Rrst disable cache and message for the Rrst example August 07, 2013
Octocat-spinner-32 006-minimal.rst removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 007-text-output.Rmd a test case for the new option results='hold'; yihui/knitr#593 August 29, 2013
Octocat-spinner-32 007-text-output.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 008-outdec.Rnw add two examples about OutDec and ggplot2 geoms July 25, 2012
Octocat-spinner-32 008-outdec.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 009-slides.Rmd also fix the Rmd source #14 August 21, 2013
Octocat-spinner-32 009-slides.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 010-upload.Rmd ggpcp() has gone in ggplot2, so replace this example with base graphics April 07, 2014
Octocat-spinner-32 010-upload.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 011-conditional-eval.Rnw move examples from gists to this repos for better management August 23, 2012
Octocat-spinner-32 011-conditional-eval.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 012-line-breaks.Rmd make sure a new line is added after the source code August 07, 2013
Octocat-spinner-32 012-line-breaks.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 013-par.Rnw move examples from gists to this repos for better management August 23, 2012
Octocat-spinner-32 013-par.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 014-sweave.Rnw move examples from gists to this repos for better management August 23, 2012
Octocat-spinner-32 014-sweave.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 015-listings.Rnw move examples from gists to this repos for better management August 23, 2012
Octocat-spinner-32 015-listings.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 016-device.Rnw move examples from gists to this repos for better management August 23, 2012
Octocat-spinner-32 016-device.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 017-auto-dependson.Rnw no need to call dep_auto() any more; autodep=TRUE is smart enough now August 31, 2013
Octocat-spinner-32 017-auto-dependson.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 018-fullfig-tikz.Rnw make strip November 03, 2012
Octocat-spinner-32 018-fullfig-tikz.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 019-fig-caption.Rnw examples of using fig.cap as a vector and fig.env August 21, 2012
Octocat-spinner-32 019-fig-caption.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 020-for-loop.Rnw now we do not need to write child output in a file April 03, 2013
Octocat-spinner-32 020-for-loop.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 020-for-template.rnw an example of a for loop August 13, 2012
Octocat-spinner-32 021-ggplot2-geoms.Rnw finally hadley/ggplot2#907 has been fixed, so I can get rid of this u… March 24, 2014
Octocat-spinner-32 021-ggplot2-geoms.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 022-nothing.Rmd indent the haiku to preserve line breaks August 22, 2012
Octocat-spinner-32 022-nothing.md indent the haiku to preserve line breaks August 22, 2012
Octocat-spinner-32 023-engine-python.Rmd opts_chunk$set(engine = 'python') to simplify typing August 26, 2012
Octocat-spinner-32 023-engine-python.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 024-engine-awk.Rmd the file option was deprecated now November 02, 2012
Octocat-spinner-32 024-engine-awk.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 025-engine-ruby.Rmd examples about awk, ruby and haskell August 08, 2012
Octocat-spinner-32 025-engine-ruby.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 026-engine-haskell.Rmd use ghc for haskell November 02, 2012
Octocat-spinner-32 026-engine-haskell.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 027-engine-bash.Rmd an example for bash scripts August 08, 2012
Octocat-spinner-32 027-engine-bash.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 028-engine-perl.Rmd a Perl example for yihui/knitr#406 October 24, 2012
Octocat-spinner-32 028-engine-perl.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 029-engine-Rcpp.Rmd update Rcpp engine example to reflect single calling convention November 26, 2012
Octocat-spinner-32 029-engine-Rcpp.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 030-landscape.Rnw use kable() instead of xtable, and no 'tiny' argument July 10, 2013
Octocat-spinner-32 030-landscape.tex update from Hmisc April 17, 2014
Octocat-spinner-32 031-noindent.Rnw smaller width for this chunk August 03, 2013
Octocat-spinner-32 031-noindent.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 032-persp.Rnw name and cache the persp chunk August 22, 2012
Octocat-spinner-32 032-persp.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 033-file-extension.Rnw simplify example 033 January 24, 2014
Octocat-spinner-32 033-file-extension.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 034-chinese.Rhtml make strip November 03, 2012
Octocat-spinner-32 034-chinese.html removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 035-optipng.Rmd manually load methods package to avoid error message October 28, 2013
Octocat-spinner-32 035-optipng.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 036-latex-if.Rnw make strip November 03, 2012
Octocat-spinner-32 036-latex-if.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 037-graphics-hyperlink.Rnw smaller code width August 31, 2013
Octocat-spinner-32 037-graphics-hyperlink.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 038-output-width.Rnw should mention tidy=FALSE in the example September 15, 2013
Octocat-spinner-32 038-output-width.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 039-merge.Rmd the new chunk option `collapse` February 06, 2014
Octocat-spinner-32 039-merge.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 040-grid-table.Rnw move examples from gists to this repos for better management August 23, 2012
Octocat-spinner-32 040-grid-table.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 041-label-i-child.tpl one solution to http://stackoverflow.com/q/12095113/559676 August 26, 2012
Octocat-spinner-32 041-label-i.Rmd make November 06, 2012
Octocat-spinner-32 041-label-i.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 042-highlight-matlab.Rnw use a more striking theme July 10, 2013
Octocat-spinner-32 042-highlight-matlab.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 043-percent.Rnw escape the percent symbol (http://cos.name/cn/topic/107851) August 27, 2012
Octocat-spinner-32 043-percent.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 044-size.Rnw an example of font size in Rnw August 29, 2012
Octocat-spinner-32 044-size.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 045-chunk-hook.Rmd examples of chunk hooks September 21, 2012
Octocat-spinner-32 045-chunk-hook.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 046-read-rforge.Rmd suppress the warning `font family "sans" not found, using "bitmap"` April 14, 2014
Octocat-spinner-32 046-read-rforge.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 047-tikz-png.Rnw make strip November 03, 2012
Octocat-spinner-32 047-tikz-png.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 048-cars-demo.Rnw use fontenc October 15, 2013
Octocat-spinner-32 048-cars-demo.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 049-cars-demo.Rmd remove fig.align='center' from Rmd June 21, 2013
Octocat-spinner-32 049-cars-demo.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 050-allowframebreaks.Rnw smaller output width for the figure in 050 October 02, 2012
Octocat-spinner-32 050-allowframebreaks.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 051-flowchart.Rnw smaller code width July 10, 2013
Octocat-spinner-32 051-flowchart.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 052-suppress-output.Rmd an example of the output hook October 11, 2012
Octocat-spinner-32 052-suppress-output.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 053-beamer-only.Rnw a typo October 20, 2012
Octocat-spinner-32 053-beamer-only.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 054-loop-plots.Rmd draw plots inside a loop (http://stackoverflow.com/q/12935882/559676) October 26, 2012
Octocat-spinner-32 054-loop-plots.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 055-multicols.Rnw a multicols example for http://yihui.name/knitr/options#comment-69545… October 29, 2012
Octocat-spinner-32 055-multicols.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 056-huge-plot.Rmd make November 06, 2012
Octocat-spinner-32 056-huge-plot.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 057-engine-dot.Rmd cache the graphviz example November 20, 2013
Octocat-spinner-32 057-engine-dot.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 058-engine-tikz.Rmd make November 06, 2012
Octocat-spinner-32 058-engine-tikz.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 059-tikz.Rnw update the repo for tikzDevice November 03, 2013
Octocat-spinner-32 059-tikz.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 060-engine-sas.Rmd I've just added a '%' before "put", double quotes instead of single q… December 18, 2013
Octocat-spinner-32 060-engine-sas.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 061-bash-variable.Rmd an example of bash variables being passed from R November 12, 2012
Octocat-spinner-32 061-bash-variable.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 062-chunk-wrapper.Rmd two examples for #423 November 13, 2012
Octocat-spinner-32 062-chunk-wrapper.Rnw an example for FAQ 9 April 10, 2013
Octocat-spinner-32 062-chunk-wrapper.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 062-chunk-wrapper.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 063-html5-figure.Rmd a <figure> example for http://support.rstudio.org/help/discussions/pr… November 16, 2012
Octocat-spinner-32 063-html5-figure.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 064-bib-plot.Rnw use bibliography citations in plots (with tikzDevice) November 20, 2012
Octocat-spinner-32 064-bib-plot.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 065-rmd-chunk.Rmd an example for http://yihui.name/knitr/#comment-720506612 on how to w… November 27, 2012
Octocat-spinner-32 065-rmd-chunk.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 066-listings-breaklines.Rnw use the standalone package to remove the margin December 05, 2012
Octocat-spinner-32 066-listings-breaklines.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 067-graphics-options.Rnw wrap text October 23, 2013
Octocat-spinner-32 067-graphics-options.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 068-beamer-simple.Rnw a minimal example of beamer December 05, 2012
Octocat-spinner-32 068-beamer-simple.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 069-for-loop.Rnw an example contributed by Gil Tomás: use for-loop to knit templates December 10, 2012
Octocat-spinner-32 069-for-loop.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 069-for-template.rnw an example contributed by Gil Tomás: use for-loop to knit templates December 10, 2012
Octocat-spinner-32 070-caption-num.Rmd an example of figure numbers for http://stackoverflow.com/q/13848137/… December 12, 2012
Octocat-spinner-32 070-caption-num.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 071-cleveref-examples.Rnw using knitr with cleveref to reference R examples December 14, 2012
Octocat-spinner-32 071-cleveref-examples.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 072-latex-reference.Rnw solution to http://stackoverflow.com/q/14058832/559676 December 27, 2012
Octocat-spinner-32 072-latex-reference.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 073-code-appendix.Rnw an example of moving code to appendix December 30, 2012
Octocat-spinner-32 073-code-appendix.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 074-example-environment.Rnw an example of the Example environment based on amsthm January 02, 2013
Octocat-spinner-32 074-example-environment.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 075-knit-expand.Rnw knit_expand(): a better template example than examples 020 and 041 (y… January 02, 2013
Octocat-spinner-32 075-knit-expand.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 075-template.rnw knit_expand(): a better template example than examples 020 and 041 (y… January 02, 2013
Octocat-spinner-32 076-chinese-gb2312.TEX removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 076-chinese-gb2312.rnw how about inline R code containing chinese chars? January 16, 2013
Octocat-spinner-32 077-wrap-output.Rmd an example of wrapping excessively long lines (for Dan Tenenbaum) January 09, 2013
Octocat-spinner-32 077-wrap-output.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 078-chinese-big5.ctx removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 078-chinese-big5.rnw update the big5 example; added a chunk tidy=FALSE and inline code January 16, 2013
Octocat-spinner-32 079-eval-echo.Rmd the source code can be a vector now, so use any() August 07, 2013
Octocat-spinner-32 079-eval-echo.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 080-engine-coffeescript.Rmd cache the coffeescript example November 20, 2013
Octocat-spinner-32 080-engine-coffeescript.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 081-hello-chinese.lyx somehow there is a problem with ctex again; need to deal with \nobrea… May 30, 2013
Octocat-spinner-32 082-sweave-color.Rnw define colors for Sinput and Soutput: http://yihui.name/knitr/hooks#c… February 03, 2013
Octocat-spinner-32 082-sweave-color.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 083-ggplot2-reference.Rmd a solution to http://stackoverflow.com/q/14802183/559676 February 10, 2013
Octocat-spinner-32 083-ggplot2-reference.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 084-pandoc-more.bib an example for the pandoc() function March 05, 2013
Octocat-spinner-32 084-pandoc.R rename the 'format' field to 't' (yihui/knitr#697) January 24, 2014
Octocat-spinner-32 084-pandoc.Rmd an example for the pandoc() function March 05, 2013
Octocat-spinner-32 084-pandoc.bib an example for the pandoc() function March 05, 2013
Octocat-spinner-32 084-pandoc.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 084-pandoc.pandoc rename the 'format' field to 't' (yihui/knitr#697) January 24, 2014
Octocat-spinner-32 085-pdfcrop.Rnw cache the pdfcrop example April 05, 2013
Octocat-spinner-32 085-pdfcrop.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 086-xtable-examples.Rnw remove xtable comments April 05, 2013
Octocat-spinner-32 086-xtable-examples.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 087-child-example-child.rnw newlines at the end of files April 05, 2013
Octocat-spinner-32 087-child-example.Rnw newlines at the end of files April 05, 2013
Octocat-spinner-32 087-child-example.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 088-pandoc-embedded.R an example for yihui/knitr#547 July 01, 2013
Octocat-spinner-32 088-pandoc-embedded.Rmd rename format to t January 27, 2014
Octocat-spinner-32 088-pandoc-embedded.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 089-minimal.Rasciidoc add an asciidoc example for yihui/knitr#510 April 14, 2013
Octocat-spinner-32 089-minimal.txt removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 090-engine-c.Rmd the C engine example June 07, 2013
Octocat-spinner-32 090-engine-c.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 091-knitr-table.Rnw test corner cases, too December 10, 2013
Octocat-spinner-32 091-knitr-table.tex kable() no longer adds extra white spaces April 17, 2014
Octocat-spinner-32 092-latex-rgl.Rnw suppress warning from rgl September 27, 2013
Octocat-spinner-32 092-latex-rgl.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 093-knitr-asy.Rmd cache the asy example June 21, 2013
Octocat-spinner-32 093-knitr-asy.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 094-purl.R forgot to add an example for purl=FALSE June 21, 2013
Octocat-spinner-32 094-purl.Rmd forgot to add an example for purl=FALSE June 21, 2013
Octocat-spinner-32 094-purl.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 095-pandoc-header.Rmd an example of saving the chunk to a file July 10, 2013
Octocat-spinner-32 095-pandoc-header.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 096-knit-exit.Rmd an example of knit_exit() (yihui/knitr#524) July 11, 2013
Octocat-spinner-32 096-knit-exit.md an example of knit_exit() (yihui/knitr#524) July 11, 2013
Octocat-spinner-32 097-Hmisc-scale.Rnw scale box applied to a table July 31, 2013
Octocat-spinner-32 097-Hmisc-scale.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 098-highlight-python.Rnw an example for #495 August 07, 2013
Octocat-spinner-32 098-highlight-python.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 100-alltt-verbatim.Rnw an example of separating the source and output boxes in latex August 21, 2013
Octocat-spinner-32 100-alltt-verbatim.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 101-cache-levels.Rmd rename chunks to perhaps get rid of race condition in knitall November 04, 2013
Octocat-spinner-32 101-cache-levels.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 102-stitch-test.R examples for stitch() August 31, 2013
Octocat-spinner-32 102-stitch.R examples for stitch() August 31, 2013
Octocat-spinner-32 103-move-float.Rnw an example for Michael Friendly: move code out of the floats September 07, 2013
Octocat-spinner-32 103-move-float.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 104-subfigure.Rnw an example for subfigure: http://stackoverflow.com/q/18724254/559676 September 10, 2013
Octocat-spinner-32 104-subfigure.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 105-minimal.Rtextile add a textile example for yihui/knitr#623 October 26, 2013
Octocat-spinner-32 105-minimal.textile removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 106-polyglot.Rmd get rid of the paths of runtimes in the output; write them in message… November 01, 2013
Octocat-spinner-32 106-polyglot.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 107-inline-linebreak.Rmd example for inline expression spanning several lines November 05, 2013
Octocat-spinner-32 107-inline-linebreak.md example for inline expression spanning several lines November 05, 2013
Octocat-spinner-32 108-animation-scianimator.Rmd there is already a 107; rename to 108 November 10, 2013
Octocat-spinner-32 108-animation-scianimator.md removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 109-longstrings.Rnw rename the longstring example, and tweaked it December 09, 2013
Octocat-spinner-32 109-longstrings.tex removal of some blank lines due to the major change in yihui/knitr@2b… April 13, 2014
Octocat-spinner-32 Makefile it make take several days before the R pkg binaries can be built in c… April 17, 2014
Octocat-spinner-32 k tidy=FALSE by default now; for these examples, I still use tidy=TRUE November 20, 2013
Octocat-spinner-32 knitall time each command October 31, 2013
Octocat-spinner-32 knitr-examples.Rproj add the RStudio project file January 24, 2014
Octocat-spinner-32 readme.md update README November 04, 2013
readme.md

knitr examples

This repository is a collection of knitr examples. It is both for my own test purpose and for other knitters to learn about this package.

For each input file, there is an output file, e.g. 001-minimal.Rmd corresponds to 001-minimal.md.

Integration tests

The examples can be checked automatically with Travis CI. To enable:

  • Fork this repository and knitr
  • Enable Travis CI for your knitrfork
  • In your knitr fork, create a branch with the same name as in your knitr-examples fork
    • You can also choose to work in master in both repositories

Now, each time you push to knitr, the examples are compiled and checked for differences with the expected result. Use this for major changes to knitr to avoid undesired side effects.

Something went wrong with that request. Please try again.