tests/testthat/apps/no-shiny/app.R

library(shiny)
library(epoxy)

ui <- fixedPage(
	textInput("first", "First Name", "John"),
	textInput("last", "Last Name", "Doe"),
	ui_epoxy_html(
		"hello",
		p("Hello, {{first}} {{last}}!", "data-test-id" = "text")
	),
	includeScript("epoxy-no-shiny.js")
)

server <- function(input, output, session) {

}

shinyApp(ui, server)

Try the epoxy package in your browser

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

epoxy documentation built on Sept. 20, 2023, 1:06 a.m.