-
Notifications
You must be signed in to change notification settings - Fork 0
/
monfichier.Rmd
87 lines (61 loc) · 1.25 KB
/
monfichier.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
title: "Mon fichier"
author: Gilles
date: "`r format(Sys.time(), '%d %B, %Y')`"
output:
pdf_document:
toc: true
toc_depth: 3
bibliography: biblio.bib
---
```{r setup, include=FALSE}
options(scipen = 999)
knitr::opts_chunk$set(echo = TRUE,
# fig.align='center',
# fig.pos='H',
# out.width = "90%",
# out.height="90%",
warning=FALSE,
message=FALSE)
```
\clearpage
# Partie 1
Ceci sera la partie 1
Sourcer le fichier 1
```{r source1, eval=TRUE}
source(file = "./source1.R",
encoding = "utf-8",
local = TRUE)
```
## Section 1
```{r test, eval=TRUE}
df <- data.frame(a=1:10,
b=101:110,
c=letters[1:10])
df
```
## Section 2
Un graphique
```{r plot, eval=TRUE}
plot(df)
```
\clearpage
# Partie 2
```{r mtcars}
knitr::kable(mtcars[1:5, 1:5], caption = "The mtcars data.")
```
Utilisation de la variable initialisée dans `source1.R`
```{r testsource1, echo=TRUE}
barplot(height = abc$b, names.arg = abc$c)
```
\clearpage
# Partie 3
Test de citation [@knuth_literate_prog]
\clearpage
# Partie 4
## Section 1
## Section 2
## Section 3
## Section 4
\clearpage
# Bibliographie