remake (version 0.3.0)

list_targets: List targets

Description

List targets contained within a remakefile

Usage

list_targets(remake_file = "remake.yml", type = NULL,
  include_implicit_files = FALSE, include_cleanup_targets = FALSE)

list_dependencies(target_names, type = NULL, include_implicit_files = FALSE, include_cleanup_targets = FALSE, remake_file = "remake.yml")

Arguments

remake_file

Name of the remakefile to read (by default remake.yml)

type

Type of target to return. May be fake, object, file or cleanup. Eventually subtypes will be supported (knitr and plot targets) but this is not possible yet.

include_implicit_files

Logical scalar indicating if implicit targets should be included.

include_cleanup_targets

Logical scalar indicating if cleanup targets (which are automatically generated) should be included.

target_names

Names of targets to list dependencies of (for list_dependencies). These dependencies will be filtered as for list_targets. Dependencies are listed in topological order: targets have no dependencies that occur later than them in the vector.

Value

A character vector containing names of targets.

Details

Do not rely on argument ordering here: please use argument names.