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

colnames are missing when download CSV file using "toolbar" add-in #100

Open
zhangjunjiang opened this issue Dec 21, 2021 · 2 comments
Open
Labels
bug Something isn't working

Comments

@zhangjunjiang
Copy link

It's quite convenient to use this tool in shiny app
This is a simple bug I meet, but I think it's also very important😁😁

I have a table output like this :

excelOutput("flocu",width = "100%"))
output$flocu <- renderExcel(excelTable(data = tmp,columns=columns,showToolbar=TRUE))

When I try to download the table by click the "save" button in the toolbox, I can see the saved csv file.
But this file don't have the colnames.

Expected behavior
I hope colnames can be saved in the csv file.
Also I think it's good to make user to set the filename, not only use the default name "jexcel"

Desktop (please complete the following information):

  • OS: windows 10
  • Browser chrome
@zhangjunjiang
Copy link
Author

I got the #100 🥳🥳🥳🥳

@Swechhya Swechhya added the bug Something isn't working label Jan 24, 2022
@PablaOO7
Copy link

@zhangjunjiang you can add includeHeadersOnDownload = TRUE this to your code. This will update default setting from false and allow you to download csv with colnames. Hope this helps.😊

output$flocu <- renderExcel(excelTable(data = tmp,columns=columns,showToolbar=TRUE, includeHeadersOnDownload = TRUE))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants