私はRと光沢を学んでいて、光沢のあるパッケージドキュメントhereのコードのいくつかを試してみようとしています。私は条件が私が追加した理由が私の状態に応答していない理由を把握しようとしています。 エラーが発生しないので、私は間違って何をしていますか?条件が光っていない
ui <- fluidPage(
uiOutput("ex")
)
server <- function(input, output) {
output$ex <- renderUI({
tagList(
selectInput("n","Please Select :",
choices = c("N","U","T")),
conditionalPanel(condition = "n"=="N",
textInput("inmean"," Mean:",0.25),
textInput("invsd","Sd", 0.02)),
conditionalPanel(condition = "n"== "U",
textInput("inmean","Mean:",0.25),
textInput("insd","Sd", 0.02))
)
})
}
shinyApp(ui, server)
をあなたの条件は – user5029763
がはいああそれはそれを修正し、 ''「input.n == 『N』」でなければなりません。ありがとうございます – Morg