vincentarelbundock / tinytable

Simple and Customizable Tables in `R`
https://vincentarelbundock.github.io/tinytable
GNU General Public License v3.0
211 stars 18 forks source link

Excel and Powerpoint output #322

Closed vincentarelbundock closed 2 weeks ago

J-Moravec commented 1 month ago

I would suggest a heavy use of the openxlsx2 package. I worked with it before and it allows quite robust styling.

Looks like a lot of styling could be mapped relatively easily in 1 to 1 fashion.

vincentarelbundock commented 1 month ago

That's interesting.

To be transparent, I'm not sure I'll work on this in the short run, since I don't use Excel myself, and because it feels a bit against the tinytable ethos of zero dependencies.

However, if someone cares about this feature and is willing to submit a fully-featured pull request, I'll be happy to review.

Thanks for bringing this up!

J-Moravec commented 1 month ago

Same same. The only time I am working with excel is when I am trying to work with other people's files.

But this feature would be on my wishlist: https://x.com/brentcrossman/status/1844412279263199427

Ability to download the tables as csv/excel would be rad.

vincentarelbundock commented 1 month ago

Oh, that is a cool feature. One easy solution would be to create a custom theme that does:

  1. Save the content of x@table_dataframe to a CSV file in the current directory, with a unique name like tinytable_UUID.csv
  2. Add a note automatically to x@notes with a link to that CSV file.

That would be like 5 lines of code and would be a nice way to display the downloadable at the bottom.

vincentarelbundock commented 2 weeks ago

I copied the link to useful Excel packages to the other thread. Closing here as duplicated, to consolidate discussion of Microsoft formats here:

https://github.com/vincentarelbundock/tinytable/issues/335