Have you upgraded your packages to their latest versions? If not,
please run update.packages(ask = FALSE), otherwise please send us a
minimal and complete example along with the output of
library(shiny);sessionInfo().
BTW, I'm a little surprised that you said you were new to shiny but
you were still using the very old and deprecated syntax
reactive(function() { expr }) instead of reactive({ expr }). You
should see a warning like this when you use the former syntax:
Passing functions to 'reactive' is deprecated. Please use
expressions instead. See ?reactive for more information.
I'm wondering where you learned the deprecated syntax, and we should
definitely fix it if it is still on our website (
shiny.rstudio.com).
Regards,
Yihui