Skip to content

A simple example showing how to deploy an R Shiny app to cloud.gov

License

Notifications You must be signed in to change notification settings

cloud-gov/shiny-example

Repository files navigation

Shiny Demo App

A simple example showing how to deploy a Shiny app to cloud.gov.

Usage

Get access to cloud.gov and log in.

Clone this repo, and change into the project directory. From there, push your app to cloud.gov.

~$ cf push

After a while of watching R modules compile, you'll see output similar to this:

Waiting for app to start...

name:              shiny-example
requested state:   started
routes:            shiny-example-comedic-numbat.app.cloud.gov
last uploaded:     Wed 13 May 16:54:09 EDT 2020
stack:             cflinuxfs3
buildpacks:        r

type:            web
instances:       1/1
memory usage:    256M
start command:   R -f app.R
     state     since                  cpu    memory        disk       details
#0   running   2020-05-13T20:54:29Z   0.0%   32K of 256M   8K of 1G

Visit the listed route in your web browser to see the application in action. it should look like this:

Screenshot of a Chrome browser at a random URL showing the R Shiny hello example

Credits

Note - this demo app is taken from the collection provided here.

About

A simple example showing how to deploy an R Shiny app to cloud.gov

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages