get_msg_sink: Get the current rtemis message sink

View source: R/msg.R

get_msg_sinkR Documentation

Get the current rtemis message sink

Description

Get the current rtemis message sink

Usage

get_msg_sink()

Value

The currently registered sink function, or NULL if none is set.

Author(s)

EDG

See Also

set_msg_sink(), with_msg_sink().

Examples

get_msg_sink() # NULL unless a sink is set
old <- set_msg_sink(function(m) invisible(m))
is.function(get_msg_sink())
set_msg_sink(old) # restore the previous sink

rtemis.core documentation built on Sept. 20, 2026, 9:06 a.m.