make: Make/build target or multiple targets

makeR Documentation

Make/build target or multiple targets

Description

Make/build target or multiple targets

Usage

make(x, ...)

## S3 method for class 'node'
make(
  x,
  force = FALSE,
  verbose = TRUE,
  verbose_prefix = "",
  .visited = as.environment(list(ids = character()))
)

## S3 method for class 'character'
make(
  x,
  rflow,
  force = FALSE,
  verbose = TRUE,
  verbose_prefix = "",
  .visited = as.environment(list(ids = character())),
  onError = getOption("RFLOW_ON_ERRORS", default = "skip")
)

## S3 method for class 'rflow'
make(
  x,
  tags = NULL,
  leaves_only = TRUE,
  force = FALSE,
  tagsMatchLogic = "all",
  verbose = TRUE,
  onError = getOption("RFLOW_ON_ERRORS", default = "skip"),
  .visited = as.environment(list(ids = character()))
)

## S3 method for class 'list'
make(x, ..., .visited = as.environment(list(ids = character())))

Arguments

x

node's id or rflow object

force

logical; force eval()?

verbose

logical; Print verbose output?

tags

filter nodes by tags

leaves_only

logical; Option to run make only from ending nodes. Avoids redundant visits on intermediate nodes.

Details

There are multiple ways (S3 methods) to choose targets for building. See examples.

The tags parameter can be used to filter nodes in two modes depending on length of the argument. A character vector of lenght > 1 results in union of matches. A scalar character value is applied as a regular expression.

Examples

## Not run: 
make(RF$mynode)

## End(Not run)
## Not run: 
make(c("mynode", "othernode"), RF)

## End(Not run)
## Not run: 
make(RF, tags = "DB")

## End(Not run)
## Not run: 
nodes(RF) %>% FilterWith("DB" %in% tags & .last_evaluted < Sys.date()) %>% make()

## End(Not run)

vh-d/Rflow documentation built on May 11, 2022, 2:53 a.m.