Dear Ramnath,
First, let me thank you for all the efforts you have put to maintain such great tools in Rstudio. I am becoming a big fan of slidify as I am passing "Developing Data Products" course on coursera.
However, I am running the exact example of interactive Interactive Chart with Controls from this repo. I did everything according to the descriptions. But, I can't see any interactive chart. I would be very thankful if you could give me some insight in this issue. I am struggling with interactive slides for a month and no luck in resolving it. I read all about interactive slides on forums and from your slidify website. But none helped me resolve these issues. I am now trying to reproduce the results from your repo. But,..
I get this error:
r Error in if (input[[paste0("runCode", i)]] != 0) return(isolate({ : argument is of length zero
my session info is:
Rversion3.1.3 (2015-03-09)
Platform:x86_64-apple-darwin13.4.0 (64-bit)
Runningunder:OSX10.10.2 (Yosemite)
locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8attachedbasepackages:
[1] statsgraphicsgrDevicesutilsdatasetsmethodsbaseotherattachedpackages:
[1] rCharts_0.4.5googleVis_0.5.8XML_3.98-1.1shiny_0.11.1slidifyLibraries_0.3.1
[6] slidify_0.4.5loadedviaa namespace (andnotattached):
[1] codetools_0.2-10digest_0.6.8evaluate_0.5.5formatR_1.1grid_3.1.3htmltools_0.2.6httpuv_1.3.2 [8] knitr_1.9lattice_0.20-30markdown_0.7.4mime_0.3plyr_1.8.1R6_2.0.1Rcpp_0.11.5 [15] RJSONIO_1.3-0rmarkdown_0.5.1stringr_0.6.2tools_3.1.3whisker_0.3-2xtable_1.7-4yaml_2.1.13
I use this YAML:
---title:Testdecksubtitle:author:Monajob:framework:io2012# {io2012, html5slides, shower, dzslides, ...}highlighter:highlight.js# {highlight.js, prettify, highlight}hitheme:tomorrow#widgets: [bootstrap, quiz, shiny, interactive] # {mathjax, quiz, bootstrap}mode:selfcontained# {standalone, draft}knit:slidify::knit2slides---Here is my slide:
--- .class #interactive
Interactive Chart with Controls
library(slidify)
library(slidifyLibraries)
require(shiny)
require(rCharts)
slidifyUI(
sidebarPanel(
selectInput('sex', 'Choose Sex', c('Male', 'Female')),
selectInput('type', 'Choose Type',
c('multiBarChart', 'multiBarHorizontalChart')
)
),
mainPanel(
tags$div(id='nvd3plot', class='shiny-html-output nvd3 rChart')
)
)And here is my app1.R:
require(rCharts)
output$nvd3plot<- renderChart({
haireye= as.data.frame(HairEyeColor)
n1<- nPlot(Freq~Hair, group='Eye', type=input$type,
data= subset(haireye, Sex==input$sex)
)
n1$set(dom='nvd3plot', width=600)
n1
})
Dear Ramnath,
First, let me thank you for all the efforts you have put to maintain such great tools in Rstudio. I am becoming a big fan of slidify as I am passing "Developing Data Products" course on coursera.
However, I am running the exact example of interactive Interactive Chart with Controls from this repo. I did everything according to the descriptions. But, I can't see any interactive chart. I would be very thankful if you could give me some insight in this issue. I am struggling with interactive slides for a month and no luck in resolving it. I read all about interactive slides on forums and from your slidify website. But none helped me resolve these issues. I am now trying to reproduce the results from your repo. But,..
I get this error:
r Error in if (input[[paste0("runCode", i)]] != 0) return(isolate({ : argument is of length zeromy session info is:
I use this YAML:
Here is my slide:
--- .class #interactive
Interactive Chart with Controls
And here is my app1.R: