Add a run.R script to a project directory that can be used to trigger building a targets workflow.
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'))
}