I'm attempting to KNIT rmarkdown to Word with ggvis, and getting the below error:
Error: Functions that produce HTML output found in document targeting docx output.
Please change the output type of this document to HTML.
Execution halted
Below is reproducible code to try it out. I am using RStudio. If you comment the last line, it will work fine. If you don't, it will fail.
---
title: "TestWordOutput"
author: "John"
date: "August 20, 2015"
output: word_document
---
```{r}
library(ggvis)
summary(cars)
plot(cars)
ggvis(cars, ~speed, ~dist)
```
I have done some research, and the closest thing I've found is this post. However, the code in the answer doesn't work for me.
Any help would be greatly appreciated.