我正试图用ggvis把单词拼成一行,并得到以下错误:
Error: Functions that produce HTML output found in document targeting docx output.
Please change the output type of this document to HTML.
Execution halted下面是可重复的代码来尝试它。我正在使用RStudio。如果您评论最后一行,它将运行良好。如果你不这样做,它就会失败。
---
title: "TestWordOutput"
author: "John"
date: "August 20, 2015"
output: word_document
---
```{r}图书馆(Ggvis)
摘要(Cars)
阴谋(汽车)
(汽车,速度,方向)
我做了一些研究,我发现最接近的是这个职位。然而,答案中的代码对我不起作用。
任何帮助都将不胜感激。
发布于 2015-08-21 01:32:14
阅读以下内容:png.html (或do ?export_png)。按照这里的指示,尝试让Vega/node.js实用程序工作(我现在不能,但在过去),然后执行以下操作:
---
title: "TestWordOutput"
author: "John"
date: "August 20, 2015"
output: word_document
---
```{r}图书馆(Ggvis)
摘要(Cars)
阴谋(汽车)
%>% export_png("mtcars.png")
它应该对你有用。但是,如果您的目标是Microsoft,我会坚持使用ggplot2图形。它们不会在Word中进行交互,而且你可以制作超级棒的ggplot2图表。
https://stackoverflow.com/questions/32130930
复制相似问题