I am unable to get a desired HTML from running the code below. I attached the resulting "Output" file as a snapshot. The controls are empty and there is no plot. What am I doing wrong?
Thank you.
Rmarkdown code:
---
title: "Test"
output: html_document
---
```{r, echo=FALSE, results='asis', cache=FALSE}
#install.packages("devtools")
require(devtools)
install_github("ramnathv/rCharts")
install_github("yihui/knitr")
library(rCharts)
library(knitr)
n1 <- rPlot(mpg ~ wt, data = mtcars, color = "gear", type = "point")
n1$addControls("x", value = "wt", values = names(mtcars))
n1$addControls("y", value = "wt", values = names(mtcars))
n1$addControls("color", value = "gear", values = names(mtcars))
n1$show('iframesrc', cdn = TRUE)
```
My setup: Windows 7 Pro, 64 bit. RStudio version 0.99.892. Note to install devtools when running the code attached. I click on "Knit HTML" in RStudio to build.