-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tinytable
support
#20
Conversation
---
format: html
---
```{r}
library(tables)
library(tinytable)
f <- Factor(gear) * (mpg + hp + qsec) ~ factor(vs) * (mean + sd) + 1
tab <- tabular(f, data = mtcars)
tab |> toTinytable()
``` |
I'll have to take a look at the code, but the idea of it isn't out of scope, and it's not a huge function that you've written. |
Good to hear. Justification is missing but should be easy to support. I'm not sure what options can be passed through |
I will ping when a review seems useful. Thanks. |
Sounds good. Just some notes:
|
9b2d5e9
to
f934a95
Compare
This might be OK now. I looked at the various options functions and I'm not sure it makes much sense to implement those. It would complicate things, and the whole idea of I also added a new section to the vignette. Checks pass and pkgdown website builds on my machine. |
efa4ae7
to
80dd8fd
Compare
Well, this is embarrassing. The CI failed because I wrote the wrong version number. Latest commit fixes 0.5.0 -> 0.0.5 |
Somewhere in the comments you asked whether there was a way to mark HTML so it would display automatically. If you have the I think |
Thanks. I was able to get it to work with Otherwise, yes, I think this is ready to go. |
Hi @dmurdoch,
This is a draft Pull Request to add a new
toTinytable()
function. Before I spend more time on this function, I wanted to check in to know if this is something you might be interested in. No pressure at all! It's fine if this is out of scope.tinytable
is a new table-drawing package similar tokableExtra
. You can read about it here:https://vincentarelbundock.github.io/tinytable/
It has the following benefits:
knitr
-produced strings. In my opinion, this makes the code base simpler and easier to debug/maintain/expand.Below, I copy screenshots of a
tabular
printed to several different formats. I also paste a GIF to showcase the customizability oftinytable
objects.Let me know what you think.
Examples:
tabular
to LaTeXtabular
to HTMLtabular
to Markdown (pandoc "grid" format)tabular
to Typsttabular
to Wordtinytable
showcase