Learn R Programming

drake (version 4.4.0)

message_sink_hook: Function message_sink_hook

Description

an example hook argument to make() that redirects error messages to files.

Usage

message_sink_hook(code)

Arguments

code

code to run to build the target.

See Also

make, silencer_hook, output_sink_hook

Examples

Run this code
# NOT RUN {
message_sink_hook({
  cat(1234)
  stop(5678)
})
x <- workplan(loud = cat(1234), bad = stop(5678))
make(x, hook = message_sink_hook)
# }

Run the code above in your browser using DataLab