From da6cad86b633d4a7231c8e5351f9bd0b697a3036 Mon Sep 17 00:00:00 2001 From: Stefan Kuethe Date: Fri, 13 Sep 2024 15:26:04 +0200 Subject: [PATCH] Update README --- .Rbuildignore | 1 + README.Rmd | 40 ++++++++++++++++++++++++++++++++++++++-- README.md | 40 +++++++++++++++++++++++++++++++++++++++- 3 files changed, 78 insertions(+), 3 deletions(-) diff --git a/.Rbuildignore b/.Rbuildignore index 9ef93ec..9d40670 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -9,3 +9,4 @@ _NAMESPACE ^docs$ ^pkgdown$ ^\.github$ +images/ diff --git a/README.Rmd b/README.Rmd index e91a03c..b510347 100644 --- a/README.Rmd +++ b/README.Rmd @@ -22,18 +22,54 @@ knitr::opts_chunk$set( The goal of rtabulator is to make it a breeze creating beautiful and reactive tables using [Tabulator JS](https://tabulator.info/) +## Features + +* Filters +* Grouping +* Multiple column formatters (images, html, progress bar, ...) +* Multiple themes +* Multi column headers +* Spreadsheet mode supporting multiple sheets +* Cell editing supporting validation +* Downloads (json, csv, xlsx) +* Interactivity + ## Installation +Once on CRAN you can install rtabulator with: + +``` r +install.packages("rtabulator") +``` + You can install the development version of rtabulator like so: ``` r remotes::install_github("eodaGmbH/rtabulator") ``` -## Example +## Basic Usage -```r +``` 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) ``` + +## Documentation + +[rtabulator docs](https://eodagmbh.github.io/rtabulator/) diff --git a/README.md b/README.md index 75ebe48..83395c2 100644 --- a/README.md +++ b/README.md @@ -4,23 +4,61 @@ # rtabulator + +[![R-CMD-check](https://github.com/eodaGmbH/rtabulator/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/eodaGmbH/rtabulator/actions/workflows/R-CMD-check.yaml) The goal of rtabulator is to make it a breeze creating beautiful and reactive tables using [Tabulator JS](https://tabulator.info/) +## Features + +- Filters +- Grouping +- Multiple column formatters (images, html, progress bar, …) +- Multiple themes +- Multi column headers +- Spreadsheet mode supporting multiple sheets +- Cell editing supporting validation +- Downloads (json, csv, xlsx) +- Interactivity + ## Installation +Once on CRAN you can install rtabulator with: + +``` r +install.packages("rtabulator") +``` + You can install the development version of rtabulator like so: ``` r remotes::install_github("eodaGmbH/rtabulator") ``` -## Example +## 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) ``` + +## Documentation + +[rtabulator docs](https://eodagmbh.github.io/rtabulator/)