Skip to content

eoda-dev/rtabulator

Repository files navigation

rtabulator

R-CMD-check CRAN status Tabulator

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

  • Filtering
  • Grouping
  • Editing
  • Input validation
  • History with undo and redo actions
  • Pagination
  • Layout
  • Column formatters
  • Column calculations
  • Multi column headers
  • Packaged themes
  • Spreadsheets supporting multiple sheets
  • Download data
  • Freeze data

Installation

Once on CRAN you can install rtabulator with:

install.packages("rtabulator")

You can install the development version of rtabulator like so:

remotes::install_github("eodaGmbH/rtabulator")

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)

Documentation

rtabulator docs