Skip to content

Commit

Permalink
Merge pull request #204 from mnel/patch-1
Browse files Browse the repository at this point in the history
Fix link to source document for gfm example
  • Loading branch information
yihui committed Apr 17, 2012
2 parents c9e777c + 2d6db16 commit 63cdff0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _posts/2011-12-03-minimal.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 63cdff0

Please sign in to comment.