in renderTable, the column names are not rotated, but literally become:
\begin{sideways} col1 \end{sideways}
I found this question but I'm not clear on how to adapt the answer to my situation (the example discusses ui.r and server.r, but in my code these are objects, not separate files).
I also tried again to adapt the solution provided in the StackOverflow link from above with the toy example, but it still creates the same borked column names:
following your example and the post on SO it works for me but it's rotating only when opening in the browser (not in the viewer)! It tooks me a lot of time to figure out but it's written here as well, not supported on every browser: https://css-tricks.com/rotated-table-column-headers/
Okay, I think that answers a big question I had about how code in ui.R compares to code in the ui object/argument in the shinyApp function: Lines in ui.R can be mostly treated as arguments in the fluidPage function.
Am I getting that right?
Back to the task at hand, that code does work for me to rotate the column titles (also only in the browser), and I was able to adapt it into my current project.
However, the output now looks like this:
I'm not terribly familiar with html and know nothing about css. Is there a way to adjust the positions of the column headers and the height of the header row?
Unfortunately, that site gives seems to give the same answer as every other site: It gives an example of setting the width of the the entire table, but I need to control the width of each column.
This page Addresses how to fix the width of the columns, but it only defines a single width. Further, when I modify the code above to include: