I just want to know about showcase mode in shiny application, when we run our shiny application in local for the showcase mode we can using command like this
setwd('D:/xxxx/')
runApp("aa",display.mode = "showcase")
My question is how if we want to show our code (showcase mode) in our application that we want to publish in shinyapps.io
Thank you,
Make sure you've installed the same versions of all packages on the Shiny Server as you have locally, including the shiny package itself. Differences in packages or dependencies may lead to errors in your code. Using absolute file paths instead of relative paths.
Publish your Shiny App to RStudio ConnectAt the top of the editor, click Publish. In the Publish to Server window, confirm that your account is shown in the Publish To Account section and click Publish. You can monitor the status of the deployment in the RStudio IDE Deploy pane.
By default, if you upload your app to shinyapps.io anyone who has the link will be able to access it. You can make your app private.
You can provide information about your app that Shiny showcase will use by creating a DESCRIPTION file. The file should be written in plain text and contain Title, Author, and DisplayMode fields in Debian Control File (DCF) format. You can also include other optional fields, such as AuthorUrl, License, and Tags. The description file of Shiny’s built in 01_hello example is displayed below You can change title, author name, and your link..
Title: Hello Shiny!
Author: RStudio, Inc.
AuthorUrl: http://www.rstudio.com/
License: GPL-3
DisplayMode: Showcase
Tags: getting-started
Type: Shiny
Shiny will use the DisplayMode field to determine the default display mode for your app. If you set the field to Showcase, Shiny will open your app in showcase mode. If you set it to Normal, Shiny will open your app in Normal mode. Your users can override this default by using the display.mode argument of runApp.
See Full Documentation
Create a text file with no extension. Name this file: DESCRIPTION
. Place the following content and edit as necessary. The display mode is set for Showcase.
Title: Hello Shiny!
Author: RStudio, Inc.
AuthorUrl: http://www.rstudio.com/
License: GPL-3
DisplayMode: Showcase
Tags: getting-started
Type: Shiny
Save this file in the same directory as your server.R
and ui.R
files. Deploy as usual. Here is the reference: http://shiny.rstudio.com/articles/display-modes.html. Just be sure that you don't have a file type or extension associated with your DESCRIPTION
file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With