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:
output
if 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.qmd
containing the paper body_quarto.yml
containing some nice typesettingbibfile.yaml
file should be placed in the top level, for use by both paper and talk- The project makefile should copy/rename figures from
plots
topaper
-
talk
: Files used to generate the talk/slides
Files in scripts
, data
, and plots
should generally use a sequential naming convention:
-
Scripts in
scripts
should have filenames starting with01_
:01_scrape.R
02_parse.R
03_eda.R
, and so on
-
Data and plot files (
data
andplots
) 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
-
Makefile
should include the following targets:all
: pipe, talk, and paperpipe
:make
the analysis pipelineclean
: clean intermediate files fromdata
andplots
-
DESCRIPTION
: Required for the minimal valid package structure expected bydevtools::load_all()