Printable Tibbles
Install the development version from Github with:
## install remotes pkg if not already
if (!requireNamespace("remotes")) {
install.packages("remotes")
}
## install from github
remotes::install_github("mkearney/printbl")
A limitation of tibble printing is that variables are hidden if they cannot fit within the device’s width.
{printbl} solves this problem via printing rows. This means users get to preview ALL of the data while preserving the pretty printing behaviors of tibbles.
## load {printbl} package
library(printbl)
## generate a data frame with lots of variables
rt <- rtweet::search_tweets("lang:en -filter:quote", include_rts = FALSE)
## select non-ID columns
x <- rt[, c(3, 6:30, 61:69, 76:82)]
## print rows
print_tbl_df(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.