To reproduce the manuscript, download all the files, then put them inside the same folder, with those in the "analyses" component in a subfolder called "analyses". (Thus, there will be files at two levels.)
Double-click on the **ReplicableDevelopmentalResearch.Rmd** file to launch RStudio. Next, you need to decide whether you want to recalculate everything from scratch or not.
# To recalculate from scratch
You will also need to get the MetaLab data files from https://github.com/langcog/metalab/. The analyses on the paper are based on the version from 2017-10-18. Download as zipped folder and put this one level up from the manuscript, so that ../metalab maps onto that folder.
Scroll down to line 80/81 and check that it says:
> source("save_analyses.R") # if changes have been made to any analyses run this, comment below
#load("educationpaper_environment.RData") # if no changes to analyses run this, comment above
# To simply re-knit the manuscript
Scroll down to line 80/81 and check that it says:
> #source("save_analyses.R") # if changes have been made to any analyses run this, comment below
load("educationpaper_environment.RData") # if no changes to analyses run this, comment above
# Knitting
You will need [papaja][1], as well as a number of other packages. If you get errors like "Error in library(XXX)", just type install.packages("XXX") in your RStudio command window. If you get an error like "Could not find executable 'pandoc-citeproc'", that may mean that pandoc-citeproc is not installed. The easiest way on a mac is to install via [HomeBrew][2] (brew install pandoc-citeproc)
[1]: https://github.com/crsh/papaja "papaja"
[2]: https://brew.sh/