About
Project information
This is a collection of development notes and reports related to the modelling of free time and chunking proactive benefits in working memory.
Working title: How does long-term memory help working memory? A comparison of long-term memory and free time benefitson working memory
Authors: Eda Mizrak, Vencislav Popov and Klaus Oberauer
How to download and reproduce the analyses
All the code and data used in this project can be found in the GitHub repository. You can download the repository as a zip file and extract it on your computer, or you can clone the repository using git by running the following command in your terminal:
git clone https://github.com/venpopov/ltmTimeBenefit.git
To reproduce the analyses in this project, you will need to have R and maybe RStudio installed on your computer. You can download R from the Comprehensive R Archive Network (CRAN), and RStudio from the RStudio website. If you are not using RStudio, you need to install Quarto to render the quarto reports (this website).
The project is structured so that you can replicate it on any machine without having to worry about R package versions, file paths, etc. Once you have R and RStudio installed, you can open the ltmTimeBenefit.Rproj
file in RStudio, which will set the working directory to the base directory of the project. We use the renv
package to record the specific R packages and their versions necessary for this project. When you open the project in RStudio, the renv
will first install itself (if it is not already installed). If for some reason the renv
package is not installed, you can install it by running install.packages("renv")
in the R console.
After the renv
package is installed, you can install all the packages used in the project by running renv::restore()
. This will install all the packages listed in the renv.lock
file in a separate library specific to this project.
We use the targets
package to manage the workflow of the project. You can run the entire workflow by running targets::tar_make()
. This will generate all computational outputs in the projectm which can then be used to generate the reports or do further analyses.
Folder structure
The project is organized in the following main folders:
- data-raw: raw data files
- output: .rds files containing computational outputs
- quarto: source files for the quarto reports. This entire website is generated from these files.
- R: custom R functions (no interactive code)