prerequisites: Return given set of properties of all rules in a list

Description Usage Arguments Details Value Author(s) See Also Examples

Description

targets() returns a character vector of all unique values of target properties, prerequisites() returns depends and script properties, and tasks() returns task properties of the given rule() or list of rules.

Usage

1
2
3
4
5
6
7

Arguments

x

An instance of the rmake.rule class or a list of such instances

Details

terminals() returns only such targets that are not prerequisites to any other rule.

Value

A character vector of unique values of the selected property obtained from all rules in x

Author(s)

Michal Burda

See Also

rule()

Examples

1
2
3
4
5
6
7
8
9
job <- 'data.csv' %>>%
  rRule('process.R', task='basic') %>>%
  'data.rds' %>>%
  markdownRule('report.Rnw', task='basic') %>>%
  'report.pdf'

prerequisites(job)    # returns c('process.R', data.csv', 'report.Rnw', 'data.rds')
targets(job)          # returns c('data.rds', 'report.pdf')
tasks(job)            # returns 'basic'

rmake documentation built on May 1, 2019, 10:37 p.m.