Skip to content

rmgpanw/workflowr_targets

Repository files navigation

Overview

A data science project built with workflowr and targets.

Setup

  • Create an R script called _targets_config.R in the project root directory with the following objects and populate:
# Config file for targets pipeline (not tracked by git). Defines global
# objects that may differ between local instances of a project.

# File paths ---------------------------------------------------------------

# input files

## My file - typically may be located outside this project, but can be local
## also
MY_FILE_IN_PATH <-
  • Install required R packages, ideally using renv with renv::init(), or renv::restore() if a renv.lock file is already present.
  • Run targets pipeline with tar_make() in the R console, or using the ‘Build’ tab in RStudio.