-
Notifications
You must be signed in to change notification settings - Fork 0
/
compil.R
18 lines (14 loc) · 809 Bytes
/
compil.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
rm(list = ls(all.names = TRUE))
.download <- FALSE
# Presentation version beamer
rmarkdown::render("presentation/presentation.Rmd", encoding = "utf8", clean = FALSE)
file.copy("presentation/presentation.pdf", "#output/presentation_beamer.pdf", overwrite = TRUE)
# Presentation version handout
md <- readLines("presentation/presentation.utf8.md")
md <- c(md[1], "handout: yes", md[2:length(md)])
writeLines(md, "presentation/presentation.utf8.md")
rmarkdown::render("presentation/presentation.utf8.md", encoding = "utf8", output_file = "presentation.pdf")
file.copy("presentation/presentation.pdf", "#output/presentation_handout.pdf", overwrite = TRUE)
# Support d'exercices
rmarkdown::render("pratique/index.Rmd", encoding = "utf8")
file.copy("pratique/index.html", "#output/index.html", overwrite = TRUE)