Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a test for https://github.com/rstudio/shiny/pull/2593 #157

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions 172-showcase-filenames/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Title: Hello Shiny!
Author: RStudio, Inc.
AuthorUrl: http://www.rstudio.com/
License: MIT
DisplayMode: Showcase
Tags: getting-started
Type: Shiny
11 changes: 11 additions & 0 deletions 172-showcase-filenames/My Script.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
msg <- tagList(
p(
"Opening this app in showcase mode should,",
"show code from the testapp.R file (on initial load)."
),
p("Also, you should be able to click to view 'My Script.R'"),
p(
"PR:", a("#2593", href = "https://github.com/rstudio/shiny/pull/2593"),
"Issue: ", a("#1926", href = "https://github.com/rstudio/shiny/issues/1926")
)
)
12 changes: 12 additions & 0 deletions 172-showcase-filenames/testapp.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
library(shiny)
library(plotly)

source("My Script.R")

ui <- fluidPage(uiOutput("msg"))

server <- function(input, output, session) {
output$msg <- renderUI(msg)
}

shinyApp(ui, server, options = list(display.mode = "showcase"))