我有这样的代码:
columnSelectorUI <- function(id) {
ns <- NS(id)
return(
wellPanel(
h4("Select columns"),
uiOutput(ns("tab"))
))
}
columnSelectorServer <- function(input, output, session) {
print("XXX")
state <- reactiveValues()
print(renderUI({h2("hello")}))
print(output)
output$tab <- renderUI({div(HTML("hello"))})
}我看到的是:
<div id="columnSelector-tab" class="shiny-html-output shiny-bound-output"></div>
发布于 2019-10-18 12:14:53
解决了:在顶层小部件调用UI组件时,我缺少了ns()调用。
https://stackoverflow.com/questions/58450447
复制相似问题