Learn R Programming

shiny (version 0.9.0)

runGist: Run a Shiny application from https://gist.github.com

Description

Download and launch a Shiny application that is hosted on GitHub as a gist.

Usage

runGist(gist, port = NULL,
  launch.browser = getOption("shiny.launch.browser", interactive()))

Arguments

gist
The identifier of the gist. For example, if the gist is https://gist.github.com/jcheng5/3239667, then 3239667, '3239667', and 'https://gist.github.com/jcheng5/3239667' are all valid values.
port
The TCP port that the application should listen on. Defaults to choosing a random port.
launch.browser
If true, the system's default web browser will be launched automatically after the app is started. Defaults to true in interactive sessions only.

Examples

Run this code
runGist(3239667)
runGist("https://gist.github.com/jcheng5/3239667")

# Old URL format without username
runGist("https://gist.github.com/3239667")

Run the code above in your browser using DataLab