add_target: Add a Target to a Makelist

View source: R/makelists.R

add_targetR 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()


fakemake documentation built on Aug. 16, 2023, 1:09 a.m.