title: How to Format R Shiny DataTable Like Microsoft Excel Table
body: <p>I have some tables in Microsoft Excel that I need to recreate in an R Shiny App. The formatting in R has to remain at least mostly the same as the original context.</p>
  
  <p>Here are images of the original tables:</p>
  
  <p><strong>Table 1</strong></p>
  
  <p><a href="https://i.stack.imgur.com/0VRTu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0VRTu.png" alt="Excel Table 1"></a></p>
  
  <p><strong>Table 2</strong></p>
  
  <p><a href="https://i.stack.imgur.com/Yr37s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Yr37s.png" alt="Excel Table 2"></a></p>
  
  <p>Notice the formatting: There are lines under table headers and above totals, headers and totals are bolded, numbers in the Monthly Bill column have thousands seperated by commas and have dollar symbols, and the final number in Table 2 is boxed in.</p>
  
  <p>If the lines were not recreatable it would be fine, but I need to at least be able to bold the selected topics, headers, and totals, and be able to get the correct number format for the Monthly Bill column.</p>
  
  <p>I have tried using the DT package but I can't figure out how to format rows instead of columns. I noticed DT uses wrappers for JavaScript functions but I don't personally know JavaScript myself. Is there a way to format this the way I that I need through R packages or Javascript?</p>
  
  <p>Edit:</p>
  
  <p>Although it would be simple, I cannot merely include an image of the tables because some of the numbers are going to be linked to user input and must have the ability to update.</p>