Skip to content

Tables in tar_git_snapshot are not shown in RStudio console panel #14

Closed Answered by wlandau
llrs asked this question in Q&A
Discussion options

You must be logged in to vote

Tibbles are printed as text, intercepted with capture.output(), and turned into messages:

cli_df <- function(x, verbose = TRUE) {
if (verbose) {
lines <- utils::capture.output(x, type = "output")
message(cli::col_br_white(paste0(lines, "\n")))
}
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by llrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants