Skip to content

Commit 790ac42

Browse files
author
Tim Cadman
committed
updated frequently used files
1 parent 3fdb316 commit 790ac42

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

code/useful-code-r-packages.r

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ install.packages("installr")
5252
install.packages("polycor")
5353
install.packages("GPArotation")
5454
install.packages("purrr")
55+
install.packages("mice")
56+
install.packages("captioner")
5557

5658
################################################################################
5759
# 3. Import and register fonts

code/useful-code-r-render.r

+14
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ windowsFonts("Arnhem-BlondItalic" = windowsFont("Arnhem-BlondItalic"))
2828
windowsFonts("Arnhem-Bold" = windowsFont("Arnhem-Bold"))
2929
windowsFonts("Arnhem-Bolditalic" = windowsFont("Arnhem-Bolditalic"))
3030

31+
windowsFonts("AkzidGroProLig" = windowsFont("AkzidGroProLig"))
32+
3133
## ---- Set up .pdf rendering --------------------------------------------------
3234
tinytex::install_tinytex()
3335

@@ -84,9 +86,21 @@ rmarkdown::render("C:/repos/teen-parenting/code/tpf-report-efa.rmd",
8486
system2("open","C:/repos/teen-parenting/reports/tpf-report-efa_06.03.19.pdf")
8587

8688

89+
################################################################################
90+
# Alspac errors
91+
################################################################################
92+
rmarkdown::render("tim_alspac_r_13.03.19.Rmd",
93+
output_file="tim_alspac_r_13.03.19.pdf")
94+
system2("open","tim_alspac_r_13.03.19.pdf")
8795

8896

97+
################################################################################
98+
# Test with Kathryn
99+
################################################################################
100+
rmarkdown::render("c:/repos/useful-code-r/code/reports/report-design.rmd",
101+
output_file="c:/repos/useful-code-r/code/reports/report-design.pdf")
89102

103+
system2("open","c:/repos/useful-code-r/code/reports/report-design.pdf")
90104

91105

92106

0 commit comments

Comments
 (0)