targetsRun: Add a targets run script to a project directory

View source: R/targets.R

targetsRunR Documentation

Add a targets run script to a project directory

Description

Add a run.R script to a project directory that can be used to trigger building a targets workflow.

Usage

targetsRun(project_directory, renv = TRUE)

Arguments

project_directory

the project directory file path

renv

add line to script restore package environment using renv

Examples

## Not run: 
projectSkeleton(paste0(tempdir(),'/test_project'))
targetsRun(paste0(tempdir(),'/test_project'))

## End(Not run)

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