Reactivity not working on the Posit Cloud

The following program does not show reactivity in the Posit Cloud but does work correctly in my own R Studio Workbench account. This would seem to suggest that others might also see this problem:

This is a Shiny web application. You can run the application by clicking

the 'Run App' button above.

Find out more about building applications with Shiny here:


ui <- fluidPage(
titlePanel("observeEvent Example"),
actionButton("clickButton", "Click Me"),

Define server logic required to draw a histogram

server <- function(input, output) {
clickCount <- reactiveVal(0)

observeEvent(input$clickButton, {
newCount <- clickCount() + 1

message <- paste("Button clicked", newCount, "times")
output$messageOutput <- renderText(message)


shinyApp(ui, server)

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.