depRule: A rule that defines a dependency between targets without...

View source: R/depRule.R

depRuleR Documentation

A rule that defines a dependency between targets without actually providing any execution script.

Description

This rule is useful when you want to specify that a target depends on another target, but you do not want to execute any script to build it.

Usage

depRule(target, depends = NULL, task = "all")

Arguments

target

Target file name that depends on depends

depends

A character vector of prerequisite file names that target depends on.

task

A character vector of parent task names. The mechanism of tasks allows to group rules. Anything different from 'all' will cause creation of a new task depending on the given rule. Executing ⁠make taskname⁠ will then force building of this rule.

Value

Instance of S3 class rmake.rule

Author(s)

Michal Burda

See Also

rule(), makefile()


rmake documentation built on Aug. 26, 2025, 5:09 p.m.