blob: 07382bfcde49986b7acf42968e962b145bafc223 (
plain)
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
|
# R and R Markdown
## Installing packages
In R shell:
install.packages(<package name>)
## Include a file
source('<filename>')
## Compiling R Markdown
require(rmarkdown)
render('<filename>') # defaults to HTML
render('<filename>' output_format='pdf_document')
## R Markdown
Run R code:
```{r}
<code>
```
Run code but don't show code block:
```{r, echo = False}
<code>
```
|