A data science project built with workflowr and targets.
- 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()
, orrenv::restore()
if arenv.lock
file is already present. - Run targets pipeline with
tar_make()
in the R console, or using the ‘Build’ tab in RStudio.