【发布时间】:2018-06-16 08:19:14
【问题描述】:
假设我在服务器中有以下代码:
df%>%
ggvis(~ratio, ~height, fill = ~ps, key := ~id) %>%
layer_bars() %>%
bind_shiny('rds', 'ui_rds')
还有如下的ui:
fluidRow( box(title = "RD",width = 6, ggvisOutput('rds')))
问题是如果输出的名称是可变的并且随时间变化, 如何在 ui 中设置?
换句话说,如果服务器的代码如下:
x <<- "some value which will be changed reactively"
df%>%
ggvis(~ratio, ~height, fill = ~ps, key := ~id) %>%
layer_bars() %>%
bind_shiny(x, paste('ui_',x))
ui 的代码应该是什么?
【问题讨论】: