targets: Add targets infrastructure

View source: R/targets.R

targetsR Documentation

Add targets infrastructure

Description

Add targets infrastructure to a project directory

Usage

targets(
  project_directory,
  type = projectTypes(),
  targets_config = list(main = list(reporter_make = "timestamp_positives")),
  renv = TRUE
)

Arguments

project_directory

the project directory file path

type

project type. Should be one returned by projectTypes().

targets_config

a list containing the targets configuration to be written to YAML format

renv

interface the use of an renv package cache

Examples

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

## End(Not run)

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