I'm trying to work through the example.Rmd file from https://github.com/crsh/papaja to learn how to create APA scripts in R markdown.
First step is simply loading the libraries:
```{r message = FALSE, warning = FALSE}
library("papaja")
library("dplyr")
library("afex")
load("../tests/testthat/data/mixed_data.rdata")
```
but I just get the following error message:
Error: package or namespace load failed for ‘afex’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘data.table’
Afex is installed (I removed it and re-installed it just to check), but it won't load. Any ideas?