-
Notifications
You must be signed in to change notification settings - Fork 0
/
convert_to_code.R
25 lines (17 loc) · 1.05 KB
/
convert_to_code.R
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
# Run to convert from Rmd to R script, keeping necessary code
knitr::purl(input = here::here("01-week1.Rmd"),
output = here::here("code files", "Week1.R"), documentation = 0)
knitr::purl(input = here::here("02-week2.Rmd"),
output = here::here("code files", "Week2.R"), documentation = 0)
knitr::purl(input = here::here("03-week3.Rmd"),
output = here::here("code files", "Week3.R"), documentation = 0)
knitr::purl(input = here::here("04-week4.Rmd"),
output = here::here("code files", "Week4.R"), documentation = 0)
knitr::purl(input = here::here("05-week5.Rmd"),
output = here::here("code files", "Week5.R"), documentation = 0)
knitr::purl(input = here::here("06-week6.Rmd"),
output = here::here("code files", "Week6.R"), documentation = 0)
knitr::purl(input = here::here("07-week7.Rmd"),
output = here::here("code files", "Week7.R"), documentation = 0)
knitr::purl(input = here::here("09-answers.Rmd"),
output = here::here("code files", "Answers.R"), documentation = 0)