Change in a variable not showing up


In below code, when I change input A as an user; sometimes the code won't reflect so until I have changed b as well; and at times; it won't show change at all; why?


output$X <- renderUI({

ctrl <- list(selectInput(A, label = 'Feature',
multiple = T, choices = allColumns))

if (length(facCols) > 0) {
ctrl <- append(ctrl, list(…,
selectInput('b', B, choices = c('overlay', 'stacked', 'side by side')), hr()))
return (ctrl)

[My ui.r has X as a part)


the renderUI code you provided is not shown to be dependent (i.e. would change) on anything.
the req() implies some possible inputs it may change on but we cant guess.

I suppose the question to ask you to prompt your thinking is, what have you done to make output$X changeable on input A ? what you've just shown is that its responsible for presenting input A ; you should be cautious in such contexts of infinite loops. code that depends on itself so that its changing causes itself to change which causes itself to change ,and on forever in a loop.

thanks, i fixed the issue by removing certain components from ctrl <- append(ctrl, uiOutput(...),..)
from most blocks and adding in ui.R

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.