I am using the New -> R Markdown... choice in R Studio and then choosing the Shiny option. I can't seem to get renderGvis to render when I click "Run Document" Do I need to alter a config file somewhere to get the googleVis library to be available?
```{r, include=FALSE}
# load packages
library(googleVis)
theQuery = #functioning sql Query here. this is working correctly
chartData = sqlQuery(channel, theQuery);
```
renderGvis({
df = data.frame(HE = chartData$HE, dHat = chartData$dHat)
Line = gvisLineChart(df)
plot(Line)
})
```
I get an output in the "Run Document" output that looks like this:
## function ()
## {
## chart <- func()
## paste(chart$html$chart, collapse = "\n")
## }
## <environment: 0x0000000009c1ef68>
But no graph. Let me know what you think, Thankya.
E