Force "digits" argument of renderTable to pass through to xtable?
8 views
Skip to first unread message
davidg...@cpm.org
unread,
Dec 2, 2016, 11:56:44 PM12/2/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Shiny - Web Framework for R
I have a few apps that use renderTable to render HTML tables with custom #s of digits in each cell. Before shiny added its own "digits" argument to renderTable and it got passed through to xtable, I could pass in a matrix of digits values to get some cells to render with 0 digits, others with 2 or 4 or whatever. Shiny taking its own digits argument broke that, however, because now the argument doesn't get passed through to xtable and shiny doesn't correctly interpret the matrix.
This code USED to do what I wanted as an argument to renderTable