Object of type 'builtin' is not subsettable

5,725 views
Skip to first unread message

tcash21

unread,
Aug 21, 2013, 1:23:06 PM8/21/13
to shiny-...@googlegroups.com
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()
                } 
...
...
}

Joe Cheng

unread,
Aug 21, 2013, 1:48:15 PM8/21/13
to shiny-...@googlegroups.com
Is this rCharts issue the same thing?


--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

tcash21

unread,
Aug 21, 2013, 2:04:42 PM8/21/13
to shiny-...@googlegroups.com
Yes very possible. I've commented on the issue. Ramnath helped me with a similar issue the other day and looks like it varies class to class. I will post follow-up here unless Ramnath does.
Reply all
Reply to author
Forward
0 new messages