ic_peek: Peek at value of expression

View source: R/peek.R

ic_peekR Documentation

Peek at value of expression

Description

This function is a proxy for calling peeking function.

Usage

ic_peek(
  value,
  peeking_function = getOption("icecream.peeking.function"),
  max_lines = getOption("icecream.max.lines")
)

Arguments

value

The result of evaluating an expression inside the ic() function.

peeking_function

The function used to peek at the value. Default value is set by the "icecream.peeking.function" option.

max_lines

Maximum number of lines printed. Default value is set by the "icecream.max.lines" option.

Details

Default value of icecream.peeking.function is ic_autopeek. Suggested possible alternatives are:

  • utils::str

  • print

  • head

  • summary

  • tibble::glimpse

Value

A string to be printed.

See Also

ic_autopeek() utils::str() base::print() utils::head() base::summary() tibble::glimpse()


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