This repository contains a template for my projects.
-
scripts: Scripts that conduct the analysis pipeline, from data collection (if appropriate) through cleaning to analysis -
data: Data files, both raw data and intermediate data files created by the pipeline scripts -
plots: Plots and other figures created by the pipeline scripts- Alternative:
outputif the project creates several tables or other outputs
- Alternative:
-
R: R files containing utility functions used repeatedly in the analysis pipeline- Load in scripts using
devtools::load_all('..') - Requires valid
DESCRIPTION
- Load in scripts using
-
paper: Files used to generate the paperpaper.qmdcontaining the paper body_quarto.ymlcontaining some nice typesettingbibfile.yamlfile should be placed in the top level, for use by both paper and talk- The project makefile should copy/rename figures from
plotstopaper
-
talk: Files used to generate the talk/slides
Files in scripts, data, and plots should generally use a sequential naming convention:
-
Scripts in
scriptsshould have filenames starting with01_:01_scrape.R02_parse.R03_eda.R, and so on
-
Data and plot files (
dataandplots) should use a parallel naming convention:00_indicates raw data (produced or gathered outside of the pipeline inscripts)01_indicates plots and intermediate data files produced by script number01, and so on
-
Makefileshould include the following targets:all: pipe, talk, and paperpipe:makethe analysis pipelineclean: clean intermediate files fromdataandplots
-
DESCRIPTION: Required for the minimal valid package structure expected bydevtools::load_all()