O rChart no R Markdown não renderiza
Estou tendo problemas para renderizar um rChart feito com 'nPlot' quando uno um documento R Markdown em html.
Eu segui a solução discutida nestePergunta, questão, mas não teve êxito.
Aqui está o meu código .Rmd
```{r, echo=FALSE}
library(knitr)
```
---
title: "Untitled"
author: "Test"
date: "01/23/2015"
output: html_document
---
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
```{r}
summary(cars)
```
You can also embed plots, for example:
```{r, echo=FALSE}
plot(cars)
```
Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.
# Here is an rChart
```{r, echo=FALSE, results='asis', comment=NA}
library(rCharts)
m2 <- nPlot(speed ~ dist, data = cars, type = "scatterChart")
m2$show('iframesrc', cdn = TRUE)
```
That was an rChart
Aqui está umligação para o documento html desse código. Eu produzi e escrevi isso no RStudio e a renderização falha em aparecer na minha máquina local e quando carregada no Dropbox.
Quando executo o seguinte código no console e salvo como html, receboesta renderização.
library(rCharts)
m2 <- nPlot(speed ~ dist, data = cars, type = "scatterChart")
m2$save('test3.html', standalone = TRUE)