Skip to content

Commit

Permalink
Update 01-introduction.Rmd (#400)
Browse files Browse the repository at this point in the history
* Update 01-introduction.Rmd

* Update 01-introduction.Rmd
  • Loading branch information
tcgriffith committed Aug 15, 2019
1 parent a32ebff commit 34b5f7a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/01-introduction.Rmd
Expand Up @@ -183,7 +183,19 @@ Note that [R will silently ignore the last line of your `.Rprofile`](https://yih

## R Markdown vs. Markdown {#output-format}

If you are not familiar with R Markdown\index{R Markdown}, please see Appendix \@ref(r-markdown) for a quick tutorial. When you create a new post, you have to decide whether you want to use R Markdown or plain Markdown\index{Markdown}, as you can see from Figure \@ref(fig:new-post). The main differences are:
If you are not familiar with R Markdown\index{R Markdown}, please see Appendix \@ref(r-markdown) for a quick tutorial. When you create a new post, you have to decide whether you want to use R Markdown or plain Markdown\index{Markdown}, as you can see from Figure \@ref(fig:new-post).

The following table summarises the differences between the three options, followed by more detailed explanations below.

|Features |.Rmd |.Rmarkdown |.md |
|:------------|:---|:---------|:--|
|bibliography |yes |no |no |
|run r code |yes |yes |no |
|task list |no |yes |yes |
|mathjax |yes |no |yes |
|html widgets |yes |no |no |



1. You cannot execute any R code in a plain Markdown document, whereas in an R Markdown document, you can embed R code chunks (```` ```{r} ````). However, you can still embed R code in plain Markdown using the syntax for fenced code blocks ```` ```r ```` (note there are no curly braces `{}`). Such code blocks will not be executed and may be suitable for pure demonstration purposes. Below is an example of an R code chunk in R Markdown:

Expand Down

0 comments on commit 34b5f7a

Please sign in to comment.