R-markdown self_contained

不问归期 提交于 2019-12-31 07:11:10

问题


I'm using R-markdown for a couple of reports. I do it with self contained graphics because I send it via email.

This worked till recently. But now the images are not shown anymore (with the error of a cross in a box). It might be that I updated the Version of RStudio. I used this a the top of the script:

---
title: "blablablab"
author: "blablablab"
output:
html_document:
fig_caption: yes
toc: no
toc_depth: 2
toc_float: no
number_sections: false
self_contained: yes
---

I know that this question is not very specific. I just wanted to ask if there is anybody which also had self contained graphics which suddenly didn't work anymore.

Thanks for the help in advance!

Greetings Dani


回答1:


I just had same problem. In RStudio i had previously:

output:
  html_document:
    self_contained: yes

and it always worked properly producing self-contained HTML. TODAY it stopped working properly. I did update Rstudio a few weeks ago and might not have noticed problem, not sure. SO now i changed to:

output:
  html_document:
    self_contained: yes
    mode: selfcontained

Which seems strange and redundant with two separate lines trying to make things self-contained BUT it worked.



来源:https://stackoverflow.com/questions/50927599/r-markdown-self-contained

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