🚨 I'm excited to release the 𝚝𝚒𝚗𝚢𝚝𝚊𝚋𝚕𝚎 📦 for #RStats ! Convert R dataframes to beautiful tables in HTML, LaTeX, PDF, Quarto, Markdown, etc. Easy to learn; minimalist interface; concise syntax; ultra-customizable tables; and zero dependency. 🧵 https://vincentarelbundock.github.io/tinytable/
Drawing simple---and beautiful---tables couldn't be easier. All you need to do is load the library and call tt(). If you are working in a Quarto or Rmarkdown document, the correct output format will be detected. Otherwise, you can pick the destination of your choice.
The group_tt() function creates spanning labels to group rows and columns. With just a few lines of code, we can create complex LaTeX/PDF tables like this one:
tinytable gives you convenient access to the Bootstrap framework to customize the appearance of your tables. You can pass choose different bootstrap themes, style specific cells or rows with CSS, or define whole new CSS rules:
I promise: all of this is very easy to use! Check out the detailed tutorial on the package website. And leave a note or a bug report while you're at it ;) https://vincentarelbundock.github.io/tinytable/
@Mehrad Yeah, that's one of the main reasons I developed this, actually. It's not quite 0-dep, because we rely on Bootstrap for HTML and some LaTeX packages & stack, but it felt pretty good to get rid of all R packages. I want to fix a couple of bugs and add a few more features, but will probably make an initial submission to CRAN in the next few weeks.
@isabelizimm Cool. I was thinking about trying this recently. It's a long shot, but I'll ask anyway: Have you found a good way to generate reference pages for an R package in Quarto, like in pkgdown?