https://github.com/LyzandeR/tableHTML
An R package to create shiny compatible HTML tables
https://github.com/LyzandeR/tableHTML
Last synced: 4 months ago
JSON representation
An R package to create shiny compatible HTML tables
- Host: GitHub
- URL: https://github.com/LyzandeR/tableHTML
- Owner: LyzandeR
- License: other
- Created: 2016-05-22T21:48:39.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-17T13:28:00.000Z (almost 2 years ago)
- Last Synced: 2024-11-16T12:18:47.873Z (5 months ago)
- Language: R
- Homepage:
- Size: 2.98 MB
- Stars: 22
- Watchers: 5
- Forks: 6
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: news.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - LyzandeR/tableHTML - An R package to create shiny compatible HTML tables (R)
README
# tableHTML
## Overview
The goal of `tableHTML` is to create easily CSS-ible HTML tables. It is compatible with any application that uses HTML / CSS and has successfully been tested with:
* Shiny
* Rmarkdown
* Microsoft OfficeThe package follows the `tidyverse` philosophy and uses the pipe operator `%>%` to chain functions together. Apart from applying standard CSS to columns / rows, the package offers the ability to add CSS conditionally (e.g. like column colour ranks) and to create CSS files for shiny.
## Installation
To install the latest released version from CRAN you just need to run on your console:
```r
install.packages('tableHTML')
```To install the development version you need to have the `devtools` package installed. To install devtools type in your console:
```R
install.packages('devtools')
```Then to install tableHTML run the following on your console:
```R
devtools::install_github('lyzander/tableHTML')
```## Usage
By typing on your console:
```R
library(tableHTML)
tableHTML(mtcars)
```you can see a first example of an HTML table!
## Links - Cran / Tutorial / Examples
To find out about all the functions and how to use the package with shiny you can visit the [online tutorial](https://cran.r-project.org/package=tableHTML/vignettes/tableHTML.html).
To see a gallery of examples you can visit the [examples page](https://cran.r-project.org/package=tableHTML/vignettes/examples.html).
To use conditional formatting or colour ranking for your table you can visit the [conditional formatting vignette](https://cran.r-project.org/package=tableHTML/vignettes/conditional_column.html).
For a tutorial on how to build a CSS file and how to use that in shiny (in a fast way) you can visit the [make_css and shiny](https://cran.r-project.org/package=tableHTML/vignettes/make_css.html) link.
To check the themes included in the package you can visit the [themes](https://cran.r-project.org/package=tableHTML/vignettes/themes.html) vignette.
To see the released version (and all the vignette links) you can visit [CRAN](https://cran.r-project.org/package=tableHTML).