How to use Twitter bootstrap grid layout in rmarkdown?

試著忘記壹切 提交于 2019-12-13 17:02:16

问题


I am planning to use rmarkdown to render html pages with R generated content for publishing on websites. The ultimate goal is to render some kind of dashboard like pages (example pages). I know rmarkdown uses twitter bootstrap for its layouts and that's why I was wondering if it is possible to use twitter bootstrap's grid layout within a rendered html document. Maybe I missed some information in the tutorials I found about rmarkdown rendering html pages, but there doesn't seem to be any example about how to do this.

Does anyone know how to start or does anyone know an example or tutorial somewhere? Many thanks in advance!


回答1:


Use the html directly in rmarkdown and it works. Grid system overview.

#3 column layout
<div class="row">
  <div class="col-md-4">
  ```{r}
  #chunk
  ```  
  </div>
  <div class="col-md-4">
  </div>
  <div class="col-md-4">
  </div>
</div>


来源:https://stackoverflow.com/questions/32677438/how-to-use-twitter-bootstrap-grid-layout-in-rmarkdown

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!