ots
This repo contains the scripts for reproducing the analyses in the paper.
This repo is organized as a Research Compendium Templete CCS Amsterdam.
Instructions
Prerequisites
- Make sure you have installed
doit
.
sudo apt-get install python3-pip python3-venv
pip3 install doit
- This project requires the following R packages.
install.packages(c("rvest", "tidyverse", "lubridate", "lmtest", "zoo", "corrplot", "rio", "here", "rmarkdown", "stringr"))
- Compiling the articles needs to have a LaTeX distribution installed (e.g. TexLive), as well as
pandoc
,pandoc-citeproc
.
The R package papaja
is also needed.
install.packages("devtools")
devtools::install_github("crsh/papaja")
- Due to large file size, a few data files are not available in this repo. However, they are available from osf.
You can download them manually and then put them into the data/raw
directoty. This process can also be automated: You can obtain these files using the R package osfr
and put them into the data/raw
directory.
install.packages("osfr")
require(osfr)
require(tidyverse)
require(stringr)
osf_retrieve_node("https://osf.io/utxs5/") %>% osf_ls_files -> utxs5_files
utxs5_files[str_detect(utxs5_files$name, "RDS$|csv$"), ] %>% osf_download(path = here::here("data/raw"), conflicts = "overwrite")
Reproduce
- Reproduce the analysis
doit passphraise="geheim"
- Render the article
pdf - everything ccr - html version (without online appendix) appendix - appendix only
cd report
make pdf
make ccr
make appendix
Environment
R version 4.0.2 (2020-06-22)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.1 LTS