updateCheckboxInput and 0-length logicals

558 views
Skip to first unread message

Johnathon Hege

unread,
Aug 14, 2013, 10:48:21 AM8/14/13
to shiny-...@googlegroups.com
It took me a couple of days of debugging to figure this out, so I wanted to bring it up in case anyone else ran into a similar issue. I'm on the latest CRAN release of Shiny (version .6?).

It appears that passing a zero-length logical to updateCheckboxInput causes the Shiny interface to more or less freeze up (or at least act in a very strange manner, updating some parts of the page but not others).  Obviously there are very few situations where you'd want to pass a zero-length logical to a checkbox, but accidents happen, and it would be helpful if an error were thrown indicating the problem.

This line causes the problem to occur whenever I insert it.  Adding It seems to affect random (or possibly all) objects on the page, not just those connected to the checkbox via reactive relationships.

updateCheckboxInput(session, "checkboxControlName", value=logical(0))

Otherwise, Shiny's been everything I could have asked for!  Thanks for a great product.

Winston Chang

unread,
Aug 14, 2013, 11:49:57 AM8/14/13
to shiny-...@googlegroups.com
Thanks for reporting this - I've filed an issue at https://github.com/rstudio/shiny/issues/211

-Winston


--
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.
 
 

Reply all
Reply to author
Forward
0 new messages