This function is created as a modification of utils::str()
function. It is supposed to
create more compacted yet informative summary about an object. It's default value of
"icecream.peeking.function"
ic_autopeek(object, ...)# S3 method for list
ic_autopeek(object, max_summary_length = cli::console_width(), ...)
# S3 method for data.frame
ic_autopeek(object, max_summary_length = cli::console_width(), ...)
The function is mainly used for its side effects -- outputting to the terminal. However, it also returns an invisible string of the printed summary.
The object to be summarized.
Other arguments passed to methods.
Integer. Maximum length of string summarizing the object. By default this is set to the current terminal width.
ic_autopeek(list)
: Method for list
ic_autopeek(data.frame)
: Method for data.frame
This is a generic function. Default method simply calls utils::str
function.
utils::str()
ic_peek()