powered by
an example hook argument to make() that redirects error messages to files.
hook
make()
message_sink_hook(code)
code to run to build the target.
make, silencer_hook, output_sink_hook
make
silencer_hook
output_sink_hook
# 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