Fix reactivity problem with module mod_ValueBox
ValueBox is expected to change with user input and should thus have a reactive input value (see Mastering Shiny for a discussion of the common pitfalls of servers inputs), notably the comment:
input$var is not a reactive, so whenever you pass an input value into a module, you’ll need to wrap it in a reactive() (e.g. selectVarServer("var", reactive(input$x)))
I fixed the reactive problem by wrapping the call to r$data in a reactive()