powered by
an example hook argument to make() that redirects output and error messages
hook
make()
silencer_hook(code)
code to run to build the target.
make, message_sink_hook, output_sink_hook
make
message_sink_hook
output_sink_hook
# NOT RUN { silencer_hook({ cat(1234) stop(5678) }) x <- workplan(loud = cat(1234), bad = stop(5678)) make(x, hook = silencer_hook) # }
Run the code above in your browser using DataLab