-
Notifications
You must be signed in to change notification settings - Fork 2
/
ZZ_closing-thoughts.Rmd
64 lines (49 loc) · 1.13 KB
/
ZZ_closing-thoughts.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
title: "Closing Thoughts"
date: "`r Sys.Date()`"
author: "by Anton Chigurh \u203d"
output:
html_notebook:
toc: yes
toc_float: yes
word_document:
toc: yes
---
# Load Packages
```{r include=FALSE}
library(tidyverse)
library(knitr)
```
This document uses two packages
- `library(tidyverse)`
- `library(knitr)`
# Alter `output:` in YAML header
```
---
title: "Closing Thoughts"
date: "`r Sys.Date()`"
author: "\u203d"
output:
html_notebook:
toc: yes
toc_float: yes
word_document:
toc: yes
---
```
# Example Table
`kable` works in both HTML & MS Word. Note that an interactive HTML table does not print very nicely to a Word file. An alternative is `xtable`.
```{r}
starwars %>%
arrange(desc(height), desc(name)) %>%
select(1:6) %>%
head(15) %>%
knitr::kable()
```
> Reading this report as a MS Word document, it should be obvious why an interactive HTML table does not work very well
# Alter settings inside code chunks
- Affect code chunk outputs: suppress warnings, or show output only, etc.
lines:
- 37 : no warnings
- 62 : no warnings ; "show nothing (run code)"
- 66 : show output only