mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-11 07:58:11 -05:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7b887d2fd5 | ||
|
|
8d2367ed82 | ||
|
|
be4eff413d | ||
|
|
e56571840b |
@@ -1,7 +1,7 @@
|
||||
Package: shiny
|
||||
Type: Package
|
||||
Title: Web Application Framework for R
|
||||
Version: 0.10.2
|
||||
Version: 0.10.2.2
|
||||
Date: 2014-08-19
|
||||
Author: RStudio, Inc.
|
||||
Maintainer: Winston Chang <winston@rstudio.com>
|
||||
|
||||
10
NEWS
10
NEWS
@@ -1,3 +1,13 @@
|
||||
shiny 0.10.2.2
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
* Remove use of `rstudio::viewer` in a code example, for R CMD check.
|
||||
|
||||
shiny 0.10.2.1
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
* Changed some examples to use \donttest instead of \dontrun.
|
||||
|
||||
shiny 0.10.2
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
||||
5
R/app.R
5
R/app.R
@@ -26,7 +26,7 @@
|
||||
#' app.
|
||||
#'
|
||||
#' @examples
|
||||
#' \dontrun{
|
||||
#' \donttest{
|
||||
#' shinyApp(
|
||||
#' ui = fluidPage(
|
||||
#' numericInput("n", "n", 1),
|
||||
@@ -34,8 +34,7 @@
|
||||
#' ),
|
||||
#' server = function(input, output) {
|
||||
#' output$plot <- renderPlot( plot(head(cars, input$n)) )
|
||||
#' },
|
||||
#' options=list(launch.browser = rstudio::viewer)
|
||||
#' }
|
||||
#' )
|
||||
#'
|
||||
#' shinyAppDir(system.file("examples/01_hello", package="shiny"))
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#' \code{port} and \code{launch.browser}.
|
||||
#' @export
|
||||
#' @examples
|
||||
#' \dontrun{
|
||||
#' \donttest{
|
||||
#' runUrl('https://github.com/rstudio/shiny_example/archive/master.tar.gz')
|
||||
#'
|
||||
#' # Can run an app from a subdirectory in the archive
|
||||
@@ -80,7 +80,7 @@ runUrl <- function(url, filetype = NULL, subdir = NULL, ...) {
|
||||
#' all valid values.
|
||||
#' @export
|
||||
#' @examples
|
||||
#' \dontrun{
|
||||
#' \donttest{
|
||||
#' runGist(3239667)
|
||||
#' runGist("https://gist.github.com/jcheng5/3239667")
|
||||
#'
|
||||
@@ -110,7 +110,7 @@ runGist <- function(gist, ...) {
|
||||
#' Defaults to \code{"master"}.
|
||||
#' @export
|
||||
#' @examples
|
||||
#' \dontrun{
|
||||
#' \donttest{
|
||||
#' runGitHub("shiny_example", "rstudio")
|
||||
#' # or runGitHub("rstudio/shiny_example")
|
||||
#'
|
||||
|
||||
@@ -573,8 +573,9 @@ serviceApp <- function() {
|
||||
#'
|
||||
#' # Start app in a subdirectory called myapp
|
||||
#' runApp("myapp")
|
||||
#' }
|
||||
#'
|
||||
#'
|
||||
#' \donttest{
|
||||
#' # Apps can be run without a server.r and ui.r file
|
||||
#' runApp(list(
|
||||
#' ui = bootstrapPage(
|
||||
@@ -758,7 +759,7 @@ stopApp <- function(returnValue = NULL) {
|
||||
#' code or commentary.
|
||||
#'
|
||||
#' @examples
|
||||
#' \dontrun{
|
||||
#' \donttest{
|
||||
#' # List all available examples
|
||||
#' runExample()
|
||||
#'
|
||||
|
||||
@@ -55,8 +55,9 @@ runApp()
|
||||
|
||||
# Start app in a subdirectory called myapp
|
||||
runApp("myapp")
|
||||
}
|
||||
|
||||
|
||||
\donttest{
|
||||
# Apps can be run without a server.r and ui.r file
|
||||
runApp(list(
|
||||
ui = bootstrapPage(
|
||||
|
||||
@@ -30,7 +30,7 @@ to the \code{shiny.host} option, if set, or \code{"127.0.0.1"} if not.}
|
||||
Launch Shiny example applications, and optionally, your system's web browser.
|
||||
}
|
||||
\examples{
|
||||
\dontrun{
|
||||
\donttest{
|
||||
# List all available examples
|
||||
runExample()
|
||||
|
||||
|
||||
@@ -49,21 +49,21 @@ and \code{runGist()} are based on \code{runUrl()}, using URL's from GitHub
|
||||
respectively.
|
||||
}
|
||||
\examples{
|
||||
\dontrun{
|
||||
\donttest{
|
||||
runUrl('https://github.com/rstudio/shiny_example/archive/master.tar.gz')
|
||||
|
||||
# Can run an app from a subdirectory in the archive
|
||||
runUrl("https://github.com/rstudio/shiny_example/archive/master.zip",
|
||||
subdir = "inst/shinyapp/")
|
||||
}
|
||||
\dontrun{
|
||||
\donttest{
|
||||
runGist(3239667)
|
||||
runGist("https://gist.github.com/jcheng5/3239667")
|
||||
|
||||
# Old URL format without username
|
||||
runGist("https://gist.github.com/3239667")
|
||||
}
|
||||
\dontrun{
|
||||
\donttest{
|
||||
runGitHub("shiny_example", "rstudio")
|
||||
# or runGitHub("rstudio/shiny_example")
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ interoperability purposes, such as embedding Shiny apps inside a \pkg{knitr}
|
||||
document.
|
||||
}
|
||||
\examples{
|
||||
\dontrun{
|
||||
\donttest{
|
||||
shinyApp(
|
||||
ui = fluidPage(
|
||||
numericInput("n", "n", 1),
|
||||
@@ -77,8 +77,7 @@ shinyApp(
|
||||
),
|
||||
server = function(input, output) {
|
||||
output$plot <- renderPlot( plot(head(cars, input$n)) )
|
||||
},
|
||||
options=list(launch.browser = rstudio::viewer)
|
||||
}
|
||||
)
|
||||
|
||||
shinyAppDir(system.file("examples/01_hello", package="shiny"))
|
||||
|
||||
Reference in New Issue
Block a user