Add these style definitions directly to your RMarkdown document:
<style>
.main-container {
width: 100%;
max-width: unset;
}
</style>
Alternatively you can put the style definitions in an external file like styles.css
which you link to by setting the appropriate options in the YAML header as described here:
---
output:
html_document:
css: styles.css
---
Both options work for me.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…