Skip to content

Commit 73bc190

Browse files
committed
add an Rmarkdown post for demo purposes
1 parent 2c34af3 commit 73bc190

File tree

4 files changed

+54
-4
lines changed

4 files changed

+54
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ find . -not -path '*/exampleSite/*' \( -name '*.html' -o -name '*.css' \) | xarg
1616
16 ./layouts/_default/terms.html
1717
0 ./layouts/partials/foot_custom.html
1818
0 ./layouts/partials/head_custom.html
19-
9 ./layouts/partials/footer.html
19+
20 ./layouts/partials/footer.html
2020
20 ./layouts/partials/header.html
2121
51 ./static/css/style.css
2222
7 ./static/css/fonts.css
23-
138 total
23+
149 total
2424
```
2525

2626
I can certainly further reduce the code, for example, by eliminating the CSS, but I believe a tiny bit of CSS can greatly improve readability. You cannot really find many CSS frameworks that only contain 50 lines of code.

exampleSite/content/_index.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ find . -not -path '*/exampleSite/*' \( -name '*.html' -o -name '*.css' \) | xarg
2222
16 ./layouts/_default/terms.html
2323
0 ./layouts/partials/foot_custom.html
2424
0 ./layouts/partials/head_custom.html
25-
9 ./layouts/partials/footer.html
25+
20 ./layouts/partials/footer.html
2626
20 ./layouts/partials/header.html
2727
51 ./static/css/style.css
2828
7 ./static/css/fonts.css
29-
138 total
29+
149 total
3030
```
3131

3232
I can certainly further reduce the code, for example, by eliminating the CSS, but I believe a tiny bit of CSS can greatly improve readability. You cannot really find many CSS frameworks that only contain 50 lines of code.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: An R Markdown Example
3+
author: Yihui Xie
4+
date: '2017-06-21'
5+
categories:
6+
- Example
7+
- R
8+
tags:
9+
- blogdown
10+
slug: an-r-markdown-example
11+
---
12+
13+
This is a simple R Markdown example, with a single R code chunk below.
14+
15+
```{r}
16+
knitr::kable(head(mtcars))
17+
```
18+
19+
The table shows the first 6 rows of the `mtcars` dataset in base R.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: An R Markdown Example
3+
author: Yihui Xie
4+
date: '2017-06-21'
5+
categories:
6+
- Example
7+
- R
8+
tags:
9+
- blogdown
10+
slug: an-r-markdown-example
11+
---
12+
13+
This is a simple R Markdown example, with a single R code chunk below.
14+
15+
16+
```r
17+
knitr::kable(head(mtcars))
18+
```
19+
20+
21+
22+
| | mpg| cyl| disp| hp| drat| wt| qsec| vs| am| gear| carb|
23+
|:-----------------|----:|---:|----:|---:|----:|-----:|-----:|--:|--:|----:|----:|
24+
|Mazda RX4 | 21.0| 6| 160| 110| 3.90| 2.620| 16.46| 0| 1| 4| 4|
25+
|Mazda RX4 Wag | 21.0| 6| 160| 110| 3.90| 2.875| 17.02| 0| 1| 4| 4|
26+
|Datsun 710 | 22.8| 4| 108| 93| 3.85| 2.320| 18.61| 1| 1| 4| 1|
27+
|Hornet 4 Drive | 21.4| 6| 258| 110| 3.08| 3.215| 19.44| 1| 0| 3| 1|
28+
|Hornet Sportabout | 18.7| 8| 360| 175| 3.15| 3.440| 17.02| 0| 0| 3| 2|
29+
|Valiant | 18.1| 6| 225| 105| 2.76| 3.460| 20.22| 1| 0| 3| 1|
30+
31+
The table shows the first 6 rows of the `mtcars` dataset in base R.

0 commit comments

Comments
 (0)