Rproj template for data analysis
I’m excited to share a new open-source project designed to streamline the process of analyzing behavioral data collected with PsychoPy:
👉 Data_analysis_template on GitHub
This template is ideal for researchers who collect .csv files from PsychoPy experiments and want a consistent, reusable R-based analysis workflow.
The template provides:
R/, data/, original_data/, etc.).RData and .xlsx This template was created to address common issues in behavioral science research:
By providing a clear, modular R structure and helper functions, this project promotes transparency and makes it easy to replicate your own or others’ work.
.Rproj)?An R project file (.Rproj) defines a self-contained environment in RStudio. Think of it as a sandbox:
here::here() or relative paths work out of the boxIn short: open the .Rproj file, and you’re ready to go.
You can start using the template in three easy ways:
Click the green “Use this template” button:
👉 https://github.com/Merluin/Data_analysis_template
This creates a new copy under your own GitHub account, preserving the folder structure and code.
✨ Don’t forget to leave a ⭐ on the repository if you find it helpful!
git clone https://github.com/Merluin/Data_analysis_template.git
Then open Data_analysis.Rproj in RStudio and start analyzing.
Click the “Code” button and select “Download ZIP”. Unzip it anywhere, open the .Rproj file, and you’re ready to go — no Git required.
Data_analysis_template/
├── DESCRIPTION # R package metadata
├── R/ # All core analysis functions
├── data/ # Cleaned datasets saved as .RData
├── original_data/ # Raw .csv files from PsychoPy
├── scripts/ # Custom analysis scripts (per experiment)
├── LICENSE # MIT License
├── README.md # Project description
└── Data_analysis.Rproj # RStudio project file
This blog — The Coffee Machine — is where ideas percolate. If you found this project useful, consider supporting the time and caffeine behind it.
You’re also warmly invited to fork the repo, contribute, or reach out if you’re working on similar tools. Collaboration brews innovation!
👉 Scroll down and leave a comment below! I’d love to hear from you.
Here are some more articles you might like to read next: