Override rmarkdown theme in order to change html page width
css, r, r-markdown
Solution
Create a file `styles.css` with your styles:
<style>
.main-container {
width: 100%;
max-width: unset;
}
</style>
And include it in your rmarkdown as described here:
---
output:
html_document:
css: styles.css
---
Both options work for me.
Problem
I'm trying to widen the output of rmarkdown to html. I've been trying this solution with no success (although I'm using the cerulean theme, that should be responsive according to comments). Also tried adding a `css` element as described here - no effect. How can I make this work?