Skip to content
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

Option for message in table body when generating empty table. #1881

Open
1 task done
rjazwiec opened this issue Sep 17, 2024 · 0 comments
Open
1 task done

Option for message in table body when generating empty table. #1881

rjazwiec opened this issue Sep 17, 2024 · 0 comments
Assignees

Comments

@rjazwiec
Copy link

Prework

Proposal

Now gt generates only header of the table from the empty dataframe.
It would be nice to have an option to generate empty table in the way R studio shows empty dataframe - header with message in the body "No data available in table" (or preferably custom message).

I generate many automatic crosscheck dataframes that sometimes are empty.
(like samples that have combinations of features that shouldn't be present in dataset - potential errors in measurements or data collection).
I automate printing reports from these crosschecks.
When generating pdf, table with only header looks like error in LaTex - it suggests that something is not rendered there properly.
Message in the body "This query returned 0 results" would make it look much more not error-like.

Radek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants