knitr (R) - how not to embed images in the HTML file?

前端 未结 4 777
醉梦人生
醉梦人生 2020-12-05 18:13

This is probably very easy but I can\'t seem to find it in docs. I would like to not embed the generated images in the HTML file itself.

So basically I want knit2htm

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-05 18:56

    You can just add self_contained: no to the output options in the .Rmd header. For example:

    ---
    title: "Data visualisation with ggplot"
    output:
      html_document:
        self_contained: no
        toc: yes
        toc_float: yes
    ---
    

提交回复
热议问题