get中的错误:对象输入$ table_cell_clicked找不到
我想在我的一个数据台上观察Cell_Clicked事件。 通常,我会这样做:
shiny::observeEvent(input$tableId_cell_clicked),{
...
}
我现在使用的桌子上有一个存储在变量中的表格。我正在尝试以下操作:
shiny::observeEvent(get(paste0("input$", self$name, "_cell_clicked")), {
...
}
这给我带来了以下错误:
Error in get: object 'input$Macrolaag_cell_clicked' not found
创建这样的创作是这样的:
#server side
output[[self$name]] <- DT::renderDataTable( ... )
#ui side
shiny::column(12, DT::dataTableOutput(self$name))
我不明白为什么要遇到此错误。谁能帮我吗?
I want to observe the cell_clicked event on one of my datatables.
Normally I'd do it like this:
shiny::observeEvent(input$tableId_cell_clicked),{
...
}
The table I'm using now has a tableId that's stored in a variable. I'm trying the following:
shiny::observeEvent(get(paste0("inputquot;, self$name, "_cell_clicked")), {
...
}
This gives me the following error:
Error in get: object 'input$Macrolaag_cell_clicked' not found
The creation happens like this:
#server side
output[[self$name]] <- DT::renderDataTable( ... )
#ui side
shiny::column(12, DT::dataTableOutput(self$name))
I don't understand why I'm getting this error. Can anyone help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一个完全有效的例子:
A fully working example: