Testing shiny applications whether inputs and outputs are working properly as expected

Hi all,

Can anyone help me and let me know if there is a way to check the shiny applications. For example for the below ui.R and server.R, can we check whether all inputs (selectInput, textoutput, textinput) and outputs are working well or not?

ui.R

library(shiny)


# Define UI for application that draws a histogram
shinyUI(fluidPage(
  
  textInput("name", "Name: "),
  textOutput("greeting"),
  selectInput("Slider","Slider",choices = unique(iris$Species))
  )
  )

server.R

library(shiny)

shinyServer(function(input, output) {
  
  output$greeting <- renderText({
    paste0("Hello, ", input$name, "!")
  })
    
  })

What do you mean by working as expected? With the above code, if you input in textInput, I think you should be able to see the paste0("Hello, ", input$name, "!") output. I run the code. Output is below.

I mean for any applications :slight_smile: Like whether action button is working or not? Are the data displayed when any filter is selected under selectInput. Just a basis check

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