makeRule: create a make rule

Description Usage Arguments Value

Description

create a make rule

Usage

1
2
makeRule(target, depend = c(), recipe = scriptRecipe$new(interpreter),
  interpreter = NULL, env = parent.frame())

Arguments

target

a formula specifying target ~ dependences, the dependences are separated by +, or a target name (string), in which case there is no dependence.

depend

the dependences, if target is formula, then depend is appended to the end of the dependences specified in the formula

recipe

a recipe to make the target, either an R function(target, depend), or a Recipe object, or NULL (the rule makes nothing and always success, after successfully checked dependences).

interpreter

f using the first dependent file as a script, this is the interpreter to run the script.

Value

a MakeRule R6 object


roverrobot/make documentation built on May 27, 2019, 11:44 p.m.