You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be an issue, or more of a question about how to do something - it doesn't seem possible as I see it now.
I have an application that takes an input (a search term, for example), processes that input in the shinyServer() and returns output to the mainPanel().
Conceptually, I would like to further manipulate this output, by creating checkboxes/sliders/, based on the output - that can be modified, then reactively updating certain outputs. Normally (in R), I would do something like this:
for(element in as.character(elements)) {
element_id <- paste(element, 'id', sep = '_')
element_label <- paste('Change level of', element', ':')
sliderInput(element,
element_label,
value = as.numeric(outputData[element]),
min = 1,
max = 1000)
}
... this for-loop approach does not work - the only solution I have come up with is to hard-code a bunch of conditionalPanel()s, and activate the ones relevant to the given search/output in question, which compromises any sort of order I might desire to display these UI elements in.
Is there a way to deliver a variable number of UI elements based on the data held in the Output object that shinyUI() elements draw from?
BTW! ... thank you soooo much for developing this package. I have been waiting for exactly this sort of project for 3 years now. It may be new and have development to go, but what you have here is exceptional and I can't thank you enough :)
PS I have only been using this package since Sunday, so I may be missing something obvious. I'm also new to the sort of server-client communication structure (i.e., input$ and output$ vars)
The text was updated successfully, but these errors were encountered:
ah... yes. I glossed over that section a bit - but I see how you mean now.
I will refer to the shiny-discuss group for further (non-bug) issues. Many
thanks!
This may be an issue, or more of a question about how to do something - it doesn't seem possible as I see it now.
I have an application that takes an input (a search term, for example), processes that input in the shinyServer() and returns output to the mainPanel().
Conceptually, I would like to further manipulate this output, by creating checkboxes/sliders/, based on the output - that can be modified, then reactively updating certain outputs. Normally (in R), I would do something like this:
for(element in as.character(elements)) {
element_id <- paste(element, 'id', sep = '_')
element_label <- paste('Change level of', element', ':')
sliderInput(element,
element_label,
value = as.numeric(outputData[element]),
min = 1,
max = 1000)
}
... this for-loop approach does not work - the only solution I have come up with is to hard-code a bunch of conditionalPanel()s, and activate the ones relevant to the given search/output in question, which compromises any sort of order I might desire to display these UI elements in.
Is there a way to deliver a variable number of UI elements based on the data held in the Output object that shinyUI() elements draw from?
BTW! ... thank you soooo much for developing this package. I have been waiting for exactly this sort of project for 3 years now. It may be new and have development to go, but what you have here is exceptional and I can't thank you enough :)
PS I have only been using this package since Sunday, so I may be missing something obvious. I'm also new to the sort of server-client communication structure (i.e., input$ and output$ vars)
The text was updated successfully, but these errors were encountered: