targetsScript: Add a targets script

View source: R/targets.R

targetsScriptR Documentation

Add a targets script

Description

Add a _targets.R script to a project directory

Usage

targetsScript(project_directory, type = projectTypes())

Arguments

project_directory

the project directory file path

type

project type. Should be one returned by projectTypes()

Examples

## Not run: 
projectSkeleton(paste0(tempdir(),'/test_project'))
targetsPipeline(paste0(tempdir(),'/test_project'),type = 'report')

## End(Not run)

jasenfinch/projecttemplates documentation built on July 30, 2023, 5:28 a.m.