-
Notifications
You must be signed in to change notification settings - Fork 1
/
codebook.qmd
84 lines (61 loc) · 1.66 KB
/
codebook.qmd
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
---
title: "Codebook"
subtitle: "Equity, diversity, and inclusion in the PsychoPy community"
ndate: now
date-format: "D MMM YYYY, h:mm a"
bibliography: bibs/grateful-refs-codebook.bib
---
```{r}
#| label: getAndAttachPackages
#| include: false
# list the required packages
packagesRequired <- c(
"codebook",
"grateful",
"knitr",
"showtext",
"sysfonts"
)
# Uncomment the code below to install any packages you're missing from the
# list in packagesRequired
# packagesInstalled <- installed.packages()[,"Package"]
# packagesMissing <- packagesRequired[!(packagesRequired %in% packagesInstalled)]
# if(length(packagesMissing)) install.packages(packagesMissing, repos = getCRANmirrors()[1,"URL"])
# attach the packages
invisible(lapply(packagesRequired, require, character.only=T))
```
```{r}
#| label: getFontRaleway
#| output: false
## use *raleway* font throughout
## an active internet connection is required for this step
font_add_google("Raleway", "raleway")
showtext_auto()
```
```{r}
#| label: readTidiedLabeledData
#| include: false
data <- readRDS("data/tidyLabeledSurveyData.rds")
```
# Table
::: {.callout-warning}
The `.pdf` download does not work properly. For a good `.pdf`, please choose `Print` then adjust the settings to print to pdf.
:::
```{r}
#| label: retrieveCodebookItems
codebook_items(data)
```
# Main *R* packages used
```{r}
#| label: citePackages
#| results: asis
pkgs <- cite_packages(
pkgs = packagesRequired,
output = "table",
out.dir = getwd(),
citation.style = apa.csl,
cite.tidyverse = F,
bib.file = "bibs/grateful-refs-codebook.bib"
)
knitr::kable(pkgs)
```