I am trying to find tools to generate accessible html tables with all the proper tagging per WCAG 2.1 standards from R data frames. I found this tool online that is somewhat helpful: HTML Table Generator because I can always export the tables to csv and then drag and drop them in there, but the problem is that the reports I need to recreate have multiple headers and other more complex formats that can't be generated by that tool. Specifically I have a lot of tables like the ones described here: Tables with irregular headers.
The other major challenge that makes this so difficult to do in R is that I need to be able to just copy and paste the HTML into WordPress since that is what the organization I work for uses for it's website. I tried using various packages for formatting tables (kableExtra, DT, xtable, etc..) but the problem is that the HTML that is generated goes completely wonky when pasted into WordPress. All of the Bootstrap/CSS styling is removed by WordPress. What I really need is just simple 'clean' html tables without all that extra styling so that WordPress can just apply the standard CSS for my org.
Does anyone know of any tools/packages that I can use to generate theses tables? There are literally dozens of these tables that are generated repeatedly at different times of the year, so I need something that automates the process as much as possible.
If there are no existing packages that can do this I thought maybe I can try to write one! But sadly, I don't have any idea where to start. So any helpful advice for strategies to create something like this would be appreciated as well!