Skip to contents

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

if (FALSE) {
projectSkeleton(paste0(tempdir(),'/test_project'))
targetsRun(paste0(tempdir(),'/test_project'))
}