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
if (FALSE) {
projectSkeleton(paste0(tempdir(),'/test_project'))
targets(paste0(tempdir(),'/test_project'),type = 'report')
}