Closed andreassot10 closed 3 years ago
I think I've misinterpreted the use of req()
. At first I thought that it replaces a reactive object input$x
, e.g. if the function argument is argument_a = input$x
, and it doesn't work, then you'd have to rewrite as argument_a = req(input$x)
. But it seems like req(input$x)
needs to be placed on its own right, outside the function where input$x
is being passed, in order for Shiny to silence non-truthy values?
Yes, wherever you place it nothing below that line runs until its argument is truthy
This line:
https://github.com/CDU-data-science-team/positiveAboutChangeTextClassificationDashboard/blob/e59955d6e57cd44bbec11c203ca8f56e0f1f4761/R/mod_bigrams_network_utils_bigrams.R#L9
Causes the following error:
although I did pass reactive elements into
req()
::https://github.com/CDU-data-science-team/positiveAboutChangeTextClassificationDashboard/blob/e59955d6e57cd44bbec11c203ca8f56e0f1f4761/R/mod_bigrams_network.R#L51
The bug has no impact on the visualization itself- but it's still very annoying.