ic_autopeek | R Documentation |
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 class 'list'
ic_autopeek(object, max_summary_length = cli::console_width(), ...)
## S3 method for class 'data.frame'
ic_autopeek(object, max_summary_length = cli::console_width(), ...)
object |
The object to be summarized. |
... |
Other arguments passed to methods. |
max_summary_length |
Integer. Maximum length of string summarizing the object. By default this is set to the current terminal width. |
This is a generic function. Default method simply calls utils::str
function.
The function is mainly used for its side effects – outputting to the terminal. However, it also returns an invisible string of the printed summary.
ic_autopeek(list)
: Method for list
ic_autopeek(data.frame)
: Method for data.frame
utils::str()
ic_peek()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.