shinyjs

activate tabpanel from another tabpanel

假如想象 提交于 2019-11-26 23:11:20
问题 I want when i start the application the tab panel tab2 = desactivated, and will be activated once i click the button in the first tab panel tab1, i tried with shinyjs and through CSS properties but i can not do that. thanks for your help Alex library(shiny) library(shinyjs) runApp(list( ui = bootstrapPage( tabsetPanel( tabPanel(title = "tab1", id="tab1", br(), actionButton("click", label = "View tab2 panel")), tabPanel(title = "tab2", id="tab2") ) ), server = function(input, output, session){

Possible to show console messages (written with `message`) in a shiny ui?

北慕城南 提交于 2019-11-26 15:37:51
问题 I don't understand R's message vs cat vs print vs etc. too deeply, but I'm wondering if it's possible to capture messages and show them in a shiny app? Example: the following app can capture cat statements (and print statements as well) but not message statements runApp(shinyApp( ui = fluidPage( textOutput("test") ), server = function(input,output, session) { output$test <- renderPrint({ cat("test cat") message("test message") }) } )) Cross post from the shiny-discuss Google group since I got