Adjust the output width of R Markdown HTML output

后端 未结 2 1003
傲寒
傲寒 2020-11-29 02:43

I am producing an HTML output but I am having issues with the output width of R code output.

I\'m able to adjust the figure width with no difficulty but when I try t

相关标签:
2条回答
  • 2020-11-29 03:03

    Also, you can temporarily change the local R options for a code chunk:

    ```{r my-chunk, R.options = list(width = SOME-BIG-VALUE)}
    
    ```
    
    0 讨论(0)
  • 2020-11-29 03:12

    Add this at the start of your document:

    ```{r set-options, echo=FALSE, cache=FALSE}
    options(width = SOME-REALLY-BIG-VALUE)
    ```
    

    Obviously, replace SOME-REALLY-BIG-VALUE with a number. But do you really want to do all that horizontal scrolling?

    Your output is probably being wrapped somewhere around 80 characters or so.

    0 讨论(0)
提交回复
热议问题