Runs targets::tar_source(), creates and then reads _targets.yaml from any files matching the pattern “.

make_targets(
  settings = "settings/setup.yaml",
  base_dir = fs::path("..", "..", "out"),
  target_pattern = "^\\d{3}_.*\\.R$"
)

Arguments

settings

Character path to yaml settings file or named, nested list. Passed to set_list argument of envFunc::name_env_out(). If character, the named, nested list will be yaml::read_yaml(settings)$context

base_dir

Character. Path at which to create the store.

target_pattern

Character. Regexp to find targets 'project files' (https://books.ropensci.org/targets/projects.html#project-files).

Value

list of 'projects' each with elements 'script' and 'store'. Saves _targets.yaml