


It is not very hard to make your own customized function. So, hopefully this might be helpful to others who want a bit more formatting in Markdown output! file_knit.r gives me file.html, which looks like this: Row.class=list(c("header col_first","header col","header col","header col", "header col_last"),Ĭ("col_first","col","col","col","col_last"),Ĭ("footer col_first","footer col","footer col","footer col","footer col_last"))))įinally, just create a custom CSS file. Using hwrite()'s row.* function, I can assign classes # Because I used results='asis' for this chunk, I can just use cat() and hwrite() to Next, create the actual Markdown file: FILE: file.Rmd MarkdownToHTML("file.md","file.html",stylesheet="~/custom.css")

So, here's an example in case anyone else is dealing with something similar.įirst, create a file that will do the knitting and change the Markdown into HTML: FILE: file_knit.r Then, I wrote custom CSS to make my display as I wanted it. I am using the hwriter package right now to print out tables, and using the row.* and col.* features to put CSS classes on to different elements.
R MARKDOWN TABLE UPDATE
Just wanted to update this with what I settled on doing.
