Changeset View
Changeset View
Standalone View
Standalone View
autotests/folding/example.rmd.fold
1 | <beginfold id='3'>---</beginfold id='3'> | 1 | <beginfold id='1'>---</beginfold id='1'> | ||
---|---|---|---|---|---|
2 | title: <beginfold id='118'>"</beginfold id='118'>test<endfold id='118'>"</endfold id='118'> | 2 | title: <beginfold id='147'>"</beginfold id='147'>test<endfold id='147'>"</endfold id='147'> | ||
3 | author: <beginfold id='118'>"</beginfold id='118'>me<endfold id='118'>"</endfold id='118'> | 3 | author: <beginfold id='147'>"</beginfold id='147'>me<endfold id='147'>"</endfold id='147'> | ||
4 | date: <beginfold id='118'>"</beginfold id='118'>07.10.2014<endfold id='118'>"</endfold id='118'> | 4 | date: <beginfold id='147'>"</beginfold id='147'>07.10.2014<endfold id='147'>"</endfold id='147'> | ||
5 | output: html_document | 5 | output: html_document | ||
6 | <endfold id='3'>---</endfold id='3'> | 6 | <endfold id='1'>---</endfold id='1'> | ||
7 | 7 | | |||
8 | This is a simple test document. It shows syntax highlighting switches between YAML (above), R blocks | 8 | This is a simple test document. It shows syntax highlighting switches between YAML (above), R blocks | ||
9 | <beginfold id='1'>```{r, echo=FALSE}</beginfold id='1'> | 9 | <beginfold id='2'>```{r, echo=FALSE}</beginfold id='2'> | ||
10 | for (i in 1:10) <beginfold id='113'>{</beginfold id='113'> | 10 | for (i in 1:10) <beginfold id='127'>{</beginfold id='127'> | ||
11 | if(i>=10) print(i) | 11 | if(i>=10) print(i) | ||
12 | <endfold id='113'>}</endfold id='113'> | 12 | <endfold id='127'>}</endfold id='127'> | ||
13 | # two blank lines below | 13 | # two blank lines below | ||
14 | 14 | | |||
15 | sessionInfo() | 15 | sessionInfo() | ||
16 | <endfold id='1'>```</endfold id='1'> | 16 | <endfold id='2'>```</endfold id='2'> | ||
17 | 17 | | |||
18 | LaTeX equations, | 18 | LaTeX equations, | ||
19 | <beginfold id='2'>$$</beginfold id='2'> | 19 | <beginfold id='3'>$$</beginfold id='3'> | ||
20 | h_{i}(t \mid q,C) = h_{0}(t) e^{\beta_{1}quality_{i} + \beta_{2}C_{iq}} | 20 | h_{i}(t \mid q,C) = h_{0}(t) e^{\beta_{1}quality_{i} + \beta_{2}C_{iq}} | ||
21 | <endfold id='2'>$$</endfold id='2'> | 21 | <endfold id='3'>$$</endfold id='3'> | ||
22 | 22 | | |||
23 | and Markdown. A [link](http://example.com) in Markdown. | 23 | and Markdown. A [link](http://example.com) in Markdown. | ||
24 | 24 | | |||
25 | Inline `r y <- 5 + x - sin(3)` R code. | 25 | Inline `r y <- 5 + x - sin(3)` R code. | ||
26 | Inline `y <- 5 + x - sin(3)` code. | 26 | Inline `y <- 5 + x - sin(3)` code. | ||
27 | 27 | | |||
28 | 28 | | |||
29 | Heading | 29 | Heading | ||
30 | ======= | 30 | ======= | ||
31 | 31 | | |||
32 | Sub-heading | 32 | Sub-heading | ||
33 | ----------- | 33 | ----------- | ||
34 | A list of editors: | 34 | A list of editors: | ||
35 | * kate | 35 | * kate | ||
36 | * vim | 36 | * vim | ||
37 | * emacs | 37 | * emacs | ||
38 | 38 | | |||
39 | *italic*, **bold**, `monospace` | 39 | *italic*, **bold**, `monospace` | ||
40 | | ||||
41 | code block | ||||
42 | more code | ||||
43 | | ||||
44 | normal text | ||||
45 | normal text | ||||
46 | normal text |