ggpairs prints out a progress bar and estimated remaining time while generating plots, which is nice when used interactively since some of the computations can take a few seconds. But when making documents, like R notebooks, these printed messages end up in the report. ggpairs had a boolean verbose
option, but it's depricated now. Is there an alternative? I can't seem to find one.
To see the messages try:
library(GGally)
ggpairs(mtcars, columns = c("mpg", "cyl", "hp", "disp", "am", "qsec"))
In a document it ends up including:
plot: [1,1] [==-------------------------------------------] 4% est: 0s
plot: [1,2] [====-----------------------------------------] 8% est: 6s
plot: [1,3] [=====----------------------------------------] 12% est: 5s
plot: [1,4] [=======--------------------------------------] 16% est: 5s
etc
message = FALSE
in the chunk optionsmessage = FALSE, warnings = FALSE
but they still show up.suppressMessages()
. Didn't work either.progress = FALSE
. It seems to be called byggmatrix_gtable
, which takes a booleanprogress
argument. I'm not sure (haven't tested) ifprogress = F
will be passed along deep enough.progress = FALSE
in chunk option didn't work either.