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)