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

use_kable_in_shiny vignette has slight bug #854

Open
byandell opened this issue Jul 3, 2024 · 1 comment
Open

use_kable_in_shiny vignette has slight bug #854

byandell opened this issue Jul 3, 2024 · 1 comment

Comments

@byandell
Copy link

byandell commented Jul 3, 2024

Describe the bug
The gist for use_kable_in_shiny generates a Warning: Error in htmlTable_add_header_above: The new header row you provided has a total of 12 columns but the original kable_input has 13. see https://cran.r-project.org/web/packages/kableExtra/vignettes/use_kable_in_shiny.html

This can be resolved by inserting tibble::remove_rownames() %>% in line after mutate(car = rownames(.)) %>%

To Reproduce

[# code to reproduce the bug.](shiny::runGist("https://gist.github.com/haozhu233/9e675e1a8a1bb4744f9ebc9246a2366b"))
dmurdoch added a commit that referenced this issue Jul 3, 2024
@dmurdoch
Copy link
Collaborator

dmurdoch commented Jul 3, 2024

Thanks, I've fixed the code in the vignette. I don't seem to have permissions to fix the gist, so the link still points to the bad version.

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

No branches or pull requests

2 participants