mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-02 02:34:57 -05:00
These functions were temporarily ripped out of Shiny and moved to the htmltools package. We've discovered that it's safe to keep including them in shiny; as long as the functions in shiny and the functions in htmltools are identical, the user won't receive a conflict warning.
41 lines
1.2 KiB
R
41 lines
1.2 KiB
R
% Generated by roxygen2 (4.0.1): do not edit by hand
|
|
\name{runGitHub}
|
|
\alias{runGitHub}
|
|
\title{Run a Shiny application from a GitHub repository}
|
|
\usage{
|
|
runGitHub(repo, username = getOption("github.user"), ref = "master",
|
|
subdir = NULL, port = NULL,
|
|
launch.browser = getOption("shiny.launch.browser", interactive()))
|
|
}
|
|
\arguments{
|
|
\item{repo}{Name of the repository}
|
|
|
|
\item{username}{GitHub username}
|
|
|
|
\item{ref}{Desired git reference. Could be a commit, tag, or branch
|
|
name. Defaults to \code{"master"}.}
|
|
|
|
\item{subdir}{A subdirectory in the repository that contains the app. By
|
|
default, this function will run an app from the top level of the repo, but
|
|
you can use a path such as `\code{"inst/shinyapp"}.}
|
|
|
|
\item{port}{The TCP port that the application should listen on. Defaults to
|
|
choosing a random port.}
|
|
|
|
\item{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.}
|
|
}
|
|
\description{
|
|
Download and launch a Shiny application that is hosted in a GitHub repository.
|
|
}
|
|
\examples{
|
|
\dontrun{
|
|
runGitHub("shiny_example", "rstudio")
|
|
|
|
# Can run an app from a subdirectory in the repo
|
|
runGitHub("shiny_example", "rstudio", subdir = "inst/shinyapp/")
|
|
}
|
|
}
|
|
|