This may actually be an issue for rCharts specifically, but I'm not sure. I'm using the rCharts library and on initial startup I'm seeing the error 'Object of type builtin is not subsettable' when the initial inputs are NULL (they always are at first since the selectInputs are generated dynamically). I've tried adding a return(invisible) when one of the inputs is NULL but I still see the same error on startup. I also tried return(hPlot$new()) as this worked in the past for a Rickshaw chart, but then I get "object of type closure is not subsettable."
Here's the app so you can see what I'm talking about:
output$plot = renderChart2({
if(is.null(input$player1) | is.null(input$player2)) {
### what can I return here to avoid errors both for an hPlot() object and dTable object from rCharts?
return()
}
...
...
}