rtabulator

The goal of rtabulator is to make it a breeze creating beautiful and interactive tables in markdown documents and Shiny application using Tabulator JS.

Features

To learn more about rtabulator, see the documentation at https://eoda-dev.github.io/rtabulator/.

Bindings for Python are available at https://github.com/eoda-dev/py-tabulator.

Installation

You can install the released version of rtabulator from CRAN with:

install.packages("rtabulator")

You can install the development version of rtabulator like so:

# remotes::install_github("eoda-dev/rtabulator")
install.packages("rtabulator", repos = c('https://eoda-dev.r-universe.dev', 'https://cloud.r-project.org'))

Basic usage

library(rtabulator)

tabulator(mtcars)

# Set theme
tabulator(iris, theme = "midnight")

# Format columns
tabulator(airquality) |>
  set_formatter_progress(
    column = "Temp",
    legend = TRUE,
    legend_align = "left"
  )

# Spreadsheet mode
tabulator(data = list(), spreadsheet = TRUE)

Shiny

shiny::runGitHub("eoda-dev/rtabulator", subdir = "examples/shiny/titanic")