Sends to message
, but in a structured way so that a data.frame-like can
be cleanly sent to messaging.
messageDF(
df,
round,
colour = NULL,
colnames = NULL,
appendLF = TRUE,
verbose = getOption("reproducible.verbose"),
verboseLevel = 1
)
Used for side effects. This will produce a message of a structured data.frame
.
A data.frame, data.table, matrix
An optional numeric to pass to round
Passed to getFromNamespace(colour, ns = "crayon")
,
so any colour that crayon
can use
Logical or NULL
. If TRUE
, then it will print
column names even if there aren't any in the df
(i.e., they will)
be V1
etc., NULL
will print them if they exist, and FALSE
which will omit them.
logical: should messages given as a character string have a newline appended?
Numeric, -1 silent (where possible), 0 being very quiet,
1 showing more messaging, 2 being more messaging, etc.
Default is 1. Above 3 will output much more information about the internals of
Caching, which may help diagnose Caching challenges. Can set globally with an
option, e.g., options('reproducible.verbose' = 0) to reduce to minimal
The numeric value for this message*
call, equal or above
which verbose
must be. The higher this is set, the more unlikely the call
will show a message.