0
の光沢のrenderUIを使用してこれは私の最初の質問は、stackoverflowです。私は光沢のあるモジュールやrenderUI(1.0.5)に問題があります。モジュール
私は印刷が発生しますので、その後、selectInputが入力$ S_A_Inputを変更する原因となります変更
#### Main Part
ui <- bootstrapPage(
uiOutput("DynamicContent")
)
server <- function(input, output,session) {
S_A <- selectInput("S_A_Input" ,"Change Me for print message",choices=1:3)
output$DynamicContent <- renderUI({
tagList(S_A)
})
observe({
print(input$S_A_Input)
})
}
shinyApp(ui = ui, server = server)
でrenderUIを使用する場合。それはいいです。一方
私はモジュールで動作する場合、入力の$ S_A_Inputは、動作しないようです。その後、
### Module Part
Module_YYY_Server <- function(input, output, session){
S_A <- selectInput("S_A_Input" ,"Change Me for print message",choices=1:3)
output$DynamicContent <- renderUI({
tagList(S_A)
})
observe({
print(input$S_A_Input)
})
}
Module_YYY_Ui <- function(id){
ns <- NS(id) # Creates Namespace
tagList(
uiOutput("DynamicContent" %>% ns)
)
}
とモジュールを呼び出します。
#### Main Part
ui <- bootstrapPage(
Module_YYY_Ui("YYY")
)
server <- function(input, output,session) {
callModule(Module_YYY_Server,"YYY")
}
shinyApp(ui = ui, server = server)
この現象の解決策は見つかりませんでした。
これは動作しません。:selectInputで何かを変更した場合、renderTextはありません。それは、光沢が反応$ S_A_Inputを入力として表示されないようです... – mathejoachim
私の編集をチェックしてください。私は問題はそれが反応の外に定義されていると思う – tbradley
まだ動作していないようです。 selectInputを変更するたびに、1から3までのように、出力に変更はありません。私が見るものは、selectInputが作成されますが、入力はありません$ S_A_input – mathejoachim