ic_print: Print icecream messages

View source: R/print.R

ic_printR Documentation

Print icecream messages

Description

The printing logic depends on how the ic() function has been called and what user options are set.

Usage

ic_print(
  loc,
  parent_ref,
  deparsed_expression = rlang::missing_arg(),
  value = rlang::missing_arg()
)

Arguments

loc

String detailing function definition location, which may be a source ref (file, line number and character index) or an environment.

parent_ref

The calling function.

deparsed_expression

The deparsed expression (if present) on which ic() was called. If missing (default value), only evaluation context is printed.

value

The result of evaluating deparsed_expression. If expression is missing (default value), this argument should also be missing.

Value

The function is called for its side effect (printing to the console) but it also returns its output string, invisibly.


icecream documentation built on Sept. 27, 2023, 5:08 p.m.