tests/testthat/shinyapp-with-browser/server.R

library(shiny)
shinyServer(function(input, output) {
  output$distPlot <- renderPlot({
    # open Google. no reason, just do it
    browseURL("https://www.google.com/")
    dist <- rnorm(input$obs)
    hist(dist)
    # stop to examine state
    browser()
  })
  output$obs <- renderText({paste(input$obs, "\n", input$obs)})
})

Try the rsconnect package in your browser

Any scripts or data that you put into this service are public.

rsconnect documentation built on Oct. 4, 2023, 5:07 p.m.