Skip to contents

Add a new targets 'project'

Usage

add_project(project)

Arguments

project

Character. The name of the project. Do not include .R.

Details

This function will produce the following files:

./R/targets/project.R ./R/functions/project.R

It will also update () the make.R script to include this new project, and add it to the _targets.yaml file via tar_config_set. Note that if not already created, running this script will create another directory, stores, which will contain another subdirectory of the name project.