A quote:
Markdown is not LaTeX.
To compile me, run this in R:
library(knitr)
knit('001-minimal.Rmd')
See output here.
A paragraph here. A code chunk below (remember the three backticks):
library(histry)
## Loading required package: evaluate
1+1
## [1] 2
.4-.7+.3 # what? it is not zero!
## [1] 5.551115e-17
It is easy.
plot(1:10)
hist(rnorm(1000))
Yes I know the value of pi is 3.1415927, and 2 times pi is 6.2831853.
Sigh. You cannot live without math equations. OK, here we go: $\alpha+\beta=\gamma$. Note this is not supported by native markdown. You probably want to try RStudio, or at least the R package markdown, or the function knitr::knit2html()
.
You can write code within other elements, e.g. a list
foo is good
r
strsplit('hello indented world', ' ')[[1]]
```
``` 2. bar is better
Or inside blockquotes:
Here is a quote, followed by a code chunk:
r x = 1:10 rev(x^2)
```
[1] 100 81 64 49 36 25 16 9 4 1
```
if(exists("histropts"))
histropts$history$exprs
## [[1]]
## 1 + 1
##
## [[2]]
## 0.4 - 0.7 + 0.3
##
## [[3]]
## plot(1:10)
##
## [[4]]
## hist(rnorm(1000))
##
## [[5]]
## strsplit("hello indented world", " ")[[1]]
##
## [[6]]
## x = 1:10
##
## [[7]]
## rev(x^2)
Nothing fancy. You are ready to go. When you become picky, go to the knitr website.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.