R-markdown self_contained [英] R-markdown self_contained

查看:52
本文介绍了R-markdown self_contained的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 R-markdown 用于几个报告.我用自包含的图形来做,因为我是通过电子邮件发送的.

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

这一直有效到最近.但现在图像不再显示(在框中有一个十字错误).可能是我更新了 RStudio 的版本.我在脚本的顶部使用了这个:

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.

提前感谢您的帮助!

问候丹妮

推荐答案

我刚刚遇到了同样的问题.在 RStudio 我以前有过:

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

output:
  html_document:
    self_contained: yes

并且它总是可以正常工作,生成自包含的 HTML.今天它停止正常工作.几周前我确实更新了 Rstudio,可能没有注意到问题,不确定.所以现在我改为:

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.

这篇关于R-markdown self_contained的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆