add_target {fakemake}R Documentation

Add a Target to a Makelist

Description

Add a target to an existing makelist.

Usage

add_target(
  makelist,
  target,
  code,
  prerequisites = NULL,
  prerequisite_to = NULL,
  sink = NULL,
  alias = sub("\\.(Rout|log)$", "", basename(target))
)

Arguments

makelist

A list for make.

target

The target to remove from makelist.

code

The code for the new target.

prerequisites

The prerequisites for the new target.

prerequisite_to

The targets the new target is a prerequisite to. Set to TRUE to add it as a prerequisite to all existing targets.

sink

The sink for the new target.

alias

The alias for the new target.

Value

A list for make.

See Also

Other functions to manipulate makelists: get_target(), remove_target()


[Package fakemake version 1.11.1 Index]