Learn R Programming

icecream (version 0.2.2)

ic_print: 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()
)

Value

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

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.