Skip to content

Commit c84747b

Browse files
committed
Add a test for rstudio/shiny#2593
1 parent 6b31e70 commit c84747b

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

172-showcase-filenames/DESCRIPTION

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Title: Hello Shiny!
2+
Author: RStudio, Inc.
3+
AuthorUrl: http://www.rstudio.com/
4+
License: MIT
5+
DisplayMode: Showcase
6+
Tags: getting-started
7+
Type: Shiny

172-showcase-filenames/My Script.R

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
msg <- tagList(
2+
p(
3+
"Opening this app in showcase mode should,",
4+
"show code from the testapp.R file (on initial load)."
5+
),
6+
p("Also, you should be able to click to view 'My Script.R'"),
7+
p(
8+
"PR:", a("#2593", href = "https://github.com/rstudio/shiny/pull/2593"),
9+
"Issue: ", a("#1926", href = "https://github.com/rstudio/shiny/issues/1926")
10+
)
11+
)

172-showcase-filenames/testapp.R

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
library(shiny)
2+
library(plotly)
3+
4+
source("My Script.R")
5+
6+
ui <- fluidPage(uiOutput("msg"))
7+
8+
server <- function(input, output, session) {
9+
output$msg <- renderUI(msg)
10+
}
11+
12+
shinyApp(ui, server, options = list(display.mode = "showcase"))

0 commit comments

Comments
 (0)