An open API service indexing awesome lists of open source software.

https://github.com/eoda-dev/rtabulator

R Bindings for Tabulator JS
https://github.com/eoda-dev/rtabulator

bindings htmlwidgets rlang shiny spreadsheet table tabulator-js

Last synced: 21 days ago
JSON representation

R Bindings for Tabulator JS

Awesome Lists containing this project

README

          

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# rtabulator

[![R-CMD-check](https://github.com/eoda-dev/rtabulator/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/eoda-dev/rtabulator/actions/workflows/R-CMD-check.yaml)
[![CRAN status](https://www.r-pkg.org/badges/version/rtabulator)](https://CRAN.R-project.org/package=rtabulator)
[![Tabulator](https://img.shields.io/badge/Tabulator-v6.2.5-blue.svg)](https://github.com/olifolkerd/tabulator/releases/tag/6.2.5)
[![Codecov test coverage](https://codecov.io/gh/eoda-dev/rtabulator/graph/badge.svg)](https://app.codecov.io/gh/eoda-dev/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](https://tabulator.info/).

## 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

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

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

## Installation

You can install the released version of rtabulator from [CRAN](https://CRAN.R-project.org) with:

``` r
install.packages("rtabulator")
```

You can install the development version of rtabulator like so:

``` r
remotes::install_github("eoda-dev/rtabulator")
```

## Basic usage

``` r
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

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