Skip to content

Commit

Permalink
reactable
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Aug 26, 2024
1 parent 85d5756 commit 2349573
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vignettes/alternatives.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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.
Expand All @@ -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: <https://modelsummary.com>
Expand Down

0 comments on commit 2349573

Please sign in to comment.