tests/testthat/elementsApp/app.R

library(shiny)
library(shinyBS)
library(easyshiny)
library(ggplot2)

es_init()
es_renderText({'This is a simple test if elements are inserted into the app.'})
es_add_input(textInput, inputId = 'title', label = 'Title:')
es_renderPlot({qplot(mtcars$mpg) + ggtitle(label = input$title)})
es_start(title = 'elementsApp')
mYstar/easyshiny documentation built on June 21, 2019, 10:37 a.m.