# Reproducible Manuscript
Here, you can find the analysis scripts needed to reproduce our findings and manuscript. This component contains two files:
* `Regulatory Focus Manuscript.Rmd`: this is the R Markdown file containing the manuscript and all analyses. This file is just for viewing, if you want to reproduce the manuscript, use the zip file described below.
* `reproducible manuscript files.zip`: this zip-folder contains all files needed to reproduce the analyses (i.e., data, additional scripts, the RMarkdown file, and a renv-file containing information about the packages used). Instructions on using this file follow below.
### Reproducing the Analyses
In order to reproduce the online supplementary material, follow the steps below:
1. Download and unpack the `reproducible manuscript files.zip` file.
2. Open the file `Regulatory Focus Manuscript.Rmd` in R or RStudio.
3. Check that all packages that are required for the analyses (listed in the code chunk "setup") are installed on your system. Ideally, use the `renv` package to install all needed package with the same versions that we used to analyze the data. To do so, install `renv` and call `renv::init()`. This will use the documentation provided in the `renv.lockfile` to install all required package versions.
4. Knit the `Regulatory Focus Manuscript.Rmd` file.
*For more information on the renvpackage, see https://rstudio.github.io/renv/articles/renv.html.*