Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Feb 6, 2024
1 parent 9e155d0 commit 4b5d8d4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
31 changes: 16 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,28 +92,29 @@ Restart `R` completely for the installation to take effect.

## Alternative packages

Someone on Twitter asked me to make more explicit comparisons to
alternatives. So here are a few totally biased (and possibly unfair)
comments.

There are many fantastic table-drawing packages out there. Most
alternative packages have features that `tinytable` does not (yet)
support. The ones I will focus on in this section are the ones I
recommend you try if you don’t find the features you like in
`tinytable`:
Several people have asked me how `tinytable` compares to alternative
table-drawing packages in `R`. And indeed, there are many fantastic
table-drawing packages already out there. Most of theses alternatives
have features that `tinytable` does not (yet) support. If you don’t find
what you need in `tinytable`, I recommend you try one of these:

- [`gt`](https://gt.rstudio.com)
- [`kableExtra`](https://haozhu233.github.io/kableExtra/)
- [`huxtable`](https://hughjonesd.github.io/huxtable/)
- [`DT`](https://rstudio.github.io/DT/)
- [`flextable`](https://davidgohel.github.io/flextable/)

The first difference between `tinytable` and other table-drawing package
is that `tinytable` covers much of the same functionality without
loading any other `R` package by default. I think it is very important
for `R` package developers to have a table-drawing package that does not
force them to import the whole `tidyverse`. In my view, this service to
developers alone justifies writing a new package.
Here are a few totally biased (and possibly unfair) comments about each
of them.

The first difference between `tinytable` and alternatives is that
`tinytable` covers much of the same functionality without loading any
other `R` package by default. I think it is very important for `R`
package developers to have access to a table-drawing package that does
not force them to import half of the `tidyverse`. In my view, this
service to developers alone justifies writing a new package.

Now let’s consider alternatives one by one.

`gt` (65 dependencies) is an amazingly powerful table-drawing package;
possibly the most powerful in R. I like it *a lot*, and it is the first
Expand Down
10 changes: 6 additions & 4 deletions README.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ Restart `R` completely for the installation to take effect.

## Alternative packages

Someone on Twitter asked me to make more explicit comparisons to alternatives. So here are a few totally biased (and possibly unfair) comments.

There are many fantastic table-drawing packages out there. Most alternative packages have features that `tinytable` does not (yet) support. The ones I will focus on in this section are the ones I recommend you try if you don't find the features you like in `tinytable`:
Several people have asked me how `tinytable` compares to alternative table-drawing packages in `R`. And indeed, there are many fantastic table-drawing packages already out there. Most of theses alternatives have features that `tinytable` does not (yet) support. If you don't find what you need in `tinytable`, I recommend you try one of these:

* [`gt`](https://gt.rstudio.com)
* [`kableExtra`](https://haozhu233.github.io/kableExtra/)
Expand All @@ -90,7 +88,11 @@ dep_huxtable <- length(tools::package_dependencies("huxtable", recursive=TRUE, d
dep_DT <- length(tools::package_dependencies("DT", recursive=TRUE, db=db)[[1]])
```

The first difference between `tinytable` and other table-drawing package is that `tinytable` covers much of the same functionality without loading any other `R` package by default. I think it is very important for `R` package developers to have a table-drawing package that does not force them to import the whole `tidyverse`. In my view, this service to developers alone justifies writing a new package.
Here are a few totally biased (and possibly unfair) comments about each of them.

The first difference between `tinytable` and alternatives is that `tinytable` covers much of the same functionality without loading any other `R` package by default. I think it is very important for `R` package developers to have access to a table-drawing package that does not force them to import half of the `tidyverse`. In my view, this service to developers alone justifies writing a new package.

Now let's consider alternatives one by one.

`gt` (`r dep_gt` dependencies) is an amazingly powerful table-drawing package; possibly the most powerful in R. I like it *a lot*, and it is the first package that I recommend you try if you don't like `tinytable`. The reasons I don't personally use `gt` on a day-to-day basis are entirely subjective. First, and least important, I find its syntax very verbose: customizing any aspect of a table always seems to take *many* keystrokes. Second, and this is obviously a reflection of my own limitations, but I have never quite figured out `gt` actually works; it has so many exported functions (180+!) that I get lost. `gt` is more powerful than `tinytable`, but that power comes at the price of complexity. One goal of `tinytable` is to let you do 98% of what you need by learning 4 simple functions (and maybe some CSS).

Expand Down

0 comments on commit 4b5d8d4

Please sign in to comment.