This project serves as a template for TIES data processing projects: using {drake} (or {targets}) for workflow management, using Github Actions for CI/CD, and using the Open Science Framework (OSF) as a data/resources storage interface. This project is linked to this OSF project.
.github/
workflows/
.. All Github Actions workflows ..
config/
packages.R # All packges you want to attach for your work
plan.R # The {drake} plan file
R/
.. All supplemental R function definitions ..
tests/
.. Unit tests on function definitions ..
_drake.R # {drake} configuration file
DESCRIPTION # Project metadata (R package format)
install.R # Script that installs required packages
make.R # Master script that runs Drake
This project has two CI/CD workflows that run:
build-project
: Runs on push or pull request to main
or any
staging/*
branch. As implied by the name, this workflow builds the
project. It also runs any unit tests defined in the “tests” folder.
This workflow is intended to be used as a check on the submitted
code.export-data
: Runs when a commit is tagged with v*
. This workflow
runs build-project
with a signal to upload assets defined in the
{drake} plan to the OSFTo use this project, in a terminal environment:
git clone
this repocd
to where you downloaded this repoRscript install.R
to install the required softwareRscript make.R
to run the project workflowAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.