The printing logic depends on how the ic()
function has been called and what user options are
set.
ic_print(
loc,
parent_ref,
deparsed_expression = rlang::missing_arg(),
value = rlang::missing_arg()
)
The function is called for its side effect (printing to the console) but it also returns its output string, invisibly.
String detailing function definition location, which may be a source ref (file, line number and character index) or an environment.
The calling function.
The deparsed expression (if present) on which ic()
was called. If
missing (default value), only evaluation context is printed.
The result of evaluating deparsed_expression
. If expression is missing (default
value), this argument should also be missing.