Permalink
Browse files

Merge pull request #204 from mnel/patch-1

Fix link to source document for gfm example
  • Loading branch information...
2 parents c9e777c + 2d6db16 commit 63cdff0b6313d5cd1f3d177e2712f5b97c639537 @yihui committed Apr 17, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 _posts/2011-12-03-minimal.md
@@ -61,20 +61,20 @@ Two main differences among different file formats are: they use different syntax
- Rnw source: [knitr-minimal.Rnw](https://github.com/yihui/knitr/blob/master/inst/examples/knitr-minimal.Rnw)
- PDF output: [knitr-minimal.pdf](https://github.com/downloads/yihui/knitr/knitr-minimal.pdf)
- GFM
- - md source: [knitr-minimal\_knit\_.md](https://github.com/yihui/knitr/raw/master/inst/examples/knitr-minimal_knit_.md)
+ - md source: [knitr-minimal.Rmd](https://raw.github.com/yihui/knitr/master/inst/examples/knitr-minimal.Rmd)
- output: [knitr-minimal.md](https://github.com/yihui/knitr/blob/master/inst/examples/knitr-minimal.md) (GitHub does the job of parsing the md file to HTML)
- HTML
- - html source: [knitr-minimal\_knit\_.html](https://github.com/yihui/knitr/blob/master/inst/examples/knitr-minimal_knit_.html)
+ - html source: [knitr-minimal.Rhtml](https://github.com/yihui/knitr/blob/master/inst/examples/knitr-minimal.Rhtml)
- output: [knitr-minimal.html](https://github.com/downloads/yihui/knitr/knitr-minimal.html)
- LaTeX
- - tex source: [knitr-latex\_knit\_.tex](https://github.com/yihui/knitr/blob/master/inst/examples/knitr-latex_knit_.tex)
+ - tex source: [knitr-latex.Rtex](https://github.com/yihui/knitr/blob/master/inst/examples/knitr-latex.Rtex)
Except the GFM demo, you can directly use `knit()` to knit the input file, e.g.,
{% highlight r %}
library(knitr)
knit('knitr-minimal.Rnw')
-knit('knitr-minimal_knit_.html')
+knit('knitr-minimal.Rhtml')
{% endhighlight %}
The instructions on how to knit the GFM demo are in the md file. Note for the HTML demo, you need to install the **rgl** package to get the snapshot in the output.

0 comments on commit 63cdff0

Please sign in to comment.