Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

showcase display mode for published app in shinyapps.io

Tags:

r

shiny

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,

like image 858
user46543 Avatar asked Oct 10 '14 03:10

user46543


People also ask

Why does my app work locally but not on Shinyapps io?

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.

How do you publish a Shiny app on a Shiny server?

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.

Is Shinyapps IO private?

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.


2 Answers

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

like image 120
rischan Avatar answered Oct 19 '22 03:10

rischan


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.

like image 33
Brian P Avatar answered Oct 19 '22 03:10

Brian P