diff --git a/vignettes/alternatives.qmd b/vignettes/alternatives.qmd index 9beb9257..94e62c43 100644 --- a/vignettes/alternatives.qmd +++ b/vignettes/alternatives.qmd @@ -25,6 +25,7 @@ How does `tinytable` compare to alternative table-drawing packages in `R`? There * [`huxtable`](https://hughjonesd.github.io/huxtable/) * [`DT`](https://rstudio.github.io/DT/) * [`flextable`](https://davidgohel.github.io/flextable/) +* [`reactable`](https://glin.github.io/reactable/) ```{r, include=FALSE} db <- tools::CRAN_package_db() @@ -33,6 +34,7 @@ dep_gt <- length(tools::package_dependencies("gt", recursive=TRUE, db=db)[[1]]) dep_flextable <- length(tools::package_dependencies("flextable", recursive=TRUE, db=db)[[1]]) dep_huxtable <- length(tools::package_dependencies("huxtable", recursive=TRUE, db=db)[[1]]) dep_DT <- length(tools::package_dependencies("DT", recursive=TRUE, db=db)[[1]]) +dep_reactable <- length(tools::package_dependencies("reactable", recursive=TRUE, db=db)[[1]]) ``` Here are a few totally biased (and possibly unfair) comments about each of them. @@ -49,6 +51,8 @@ Now let's consider alternatives one by one. `DT` (`r dep_DT` dependencies) is nice, but it only draws HTML table, so that's a non-starter for me. I need HTML, LaTeX, Word, PNG, PDF, and Typst output, depending on the project I am working on. +`reactable` (`r dep_reactable` dependencies) is also nice, and also HTML-only. The main benefit of `reactable` is that it can create interactive tables with filtering, sorting, and pagination. + `flextable` (`r dep_DT` dependencies) is nice, but it does not support LaTeX, and I need that format for "real work." At this point, it's useful to point out that there are also many packages to compute statistics and build tables (ex: `modelsummary`, `gtsummary`, `table1`). Many of those packages delegate the actual drawing of the tables (ie: lines and colors) to one of the table-drawing packages listed above. In that sense, `tinytable` should be seen as more of a complement than an alternative to data summary packages. The goal of `tinytable` is to help users and developers convert data frames into beautiful tables easily. What people put in those tables is outside the scope of `tinytable`. If you are interested in a package to create data summaries and regression tables/plots, please check out my `modelsummary` package: