How to make vertical scrollbar appear in RMarkdown code chunks (html view)

前端 未结 2 795
太阳男子
太阳男子 2021-01-02 09:20

I\'ve found many examples outlining how to add horizontal scrollbars to R Markdown HTML output, including this specific example here. However, none that describe how to add

2条回答
  •  一向
    一向 (楼主)
    2021-01-02 09:51

    Adding onto @Martin Schmelzer's solution, I noticed there can be issues if echo = TRUE, or if your output is not much large in other parts of the document. To fix this issue just change:

    height: 50vh !important;
    

    to

    max-height: 50vh !important;
    

提交回复
热议问题