How to adjust margins in R markdown

1

I'm creating a document in R Markdown, but when I generate the markdown it fills the entire browser area, reading poorly. I would like to know how to adjust the margins so that it creates a scrollbar, but respecting a margin space on the right and left.

    
asked by anonymous 17.11.2018 / 15:27

1 answer

1

Include below the YAML code (YAML is the RMarkdown header):

<style type="text/css">
.main-container {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}
</style>
    
19.11.2018 / 16:20