Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
jgabry committed Aug 8, 2015
1 parent 9bdcecd commit 9318de0
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 24 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ Package: shinystan
Title: Interactive Visual and Numerical Diagnostics and Posterior Analysis for
for Bayesian Models
Version: 2.0.0
Date: 2015-08-07
Date: 2015-08-08
Authors@R: c(person("Jonah", "Gabry", role = c("aut", "cre"),
email = "[email protected]", comment = "Stan Development Team"),
email = "[email protected]"),
person(family = "Stan Development Team", role = "ctb"),
person("Michael", "Andreae", role = "ctb"),
person("Michael", "Betancourt", role = "ctb"),
Expand Down Expand Up @@ -37,7 +37,7 @@ Depends:
License: GPL (>=3)
LazyData: true
Suggests:
coda (>= 0.17-1),
coda,
knitr (>= 1.9),
rstan (>= 2.7),
shinyapps (>= 0.4),
Expand Down
9 changes: 4 additions & 5 deletions R/launch_shinystan.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
#' @param object An object of class shinystan, stanfit, or stanreg. See
#' \code{\link{as.shinystan}} for converting other objects to a shinystan
#' object (sso).
#' @param rstudio For RStudio users, should the app launch in RStudio's Viewer?
#' The default is to launch the app in the user's default web browser instead
#' of the RStudio viewer unless the user has set
#' \code{options(shinystan.rstudio = TRUE)}, in which case the default is to
#' launch in RStudio's Viewer.
#' @param rstudio Only relevant for RStudio users. If \code{TRUE} (the default),
#' the app will launch in RStudio's pop-up Viewer rather than the default web
#' browser. Users can change the default to \code{FALSE} by setting the global
#' option \code{options(shinystan.rstudio = FALSE)}.
#' @param ... Optional arguments to pass to \code{\link[shiny]{runApp}}.
#' @return An S4 shinystan object.
#'
Expand Down
9 changes: 4 additions & 5 deletions R/launch_shinystan_demo.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
#'
#' @export
#'
#' @param rstudio For RStudio users, should the app launch in RStudio's Viewer?
#' The default is to launch the app in the user's default web browser instead
#' of the RStudio viewer unless the user has set
#' \code{options(shinystan.rstudio = TRUE)}, in which case the default is to
#' launch in RStudio's Viewer.
#' @param rstudio Only relevant for RStudio users. If \code{TRUE} (the default),
#' the app will launch in RStudio's pop-up Viewer rather than the default web
#' browser. Users can change the default to \code{FALSE} by setting the global
#' option \code{options(shinystan.rstudio = FALSE)}.
#' @param ... Optional arguments to pass to \code{\link[shiny]{runApp}}.
#' @return An S4 shinystan object.
#'
Expand Down
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
.onLoad <- function(libname, pkgname) {
op <- options()
op.shinystan <- list(
shinystan.rstudio = FALSE
shinystan.rstudio = TRUE
)
set_ops <- !(names(op.shinystan) %in% names(op))
if (any(set_ops)) options(op.shinystan[set_ops])
Expand Down
9 changes: 4 additions & 5 deletions man/launch_shinystan.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ launch_shinystan(object, rstudio = getOption("shinystan.rstudio"), ...)
\code{\link{as.shinystan}} for converting other objects to a shinystan
object (sso).}

\item{rstudio}{For RStudio users, should the app launch in RStudio's Viewer?
The default is to launch the app in the user's default web browser instead
of the RStudio viewer unless the user has set
\code{options(shinystan.rstudio = TRUE)}, in which case the default is to
launch in RStudio's Viewer.}
\item{rstudio}{Only relevant for RStudio users. If \code{TRUE} (the default),
the app will launch in RStudio's pop-up Viewer rather than the default web
browser. Users can change the default to \code{FALSE} by setting the global
option \code{options(shinystan.rstudio = FALSE)}.}
\item{...}{Optional arguments to pass to \code{\link[shiny]{runApp}}.}
}
Expand Down
9 changes: 4 additions & 5 deletions man/launch_shinystan_demo.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
launch_shinystan_demo(rstudio = getOption("shinystan.rstudio"), ...)
}
\arguments{
\item{rstudio}{For RStudio users, should the app launch in RStudio's Viewer?
The default is to launch the app in the user's default web browser instead
of the RStudio viewer unless the user has set
\code{options(shinystan.rstudio = TRUE)}, in which case the default is to
launch in RStudio's Viewer.}
\item{rstudio}{Only relevant for RStudio users. If \code{TRUE} (the default),
the app will launch in RStudio's pop-up Viewer rather than the default web
browser. Users can change the default to \code{FALSE} by setting the global
option \code{options(shinystan.rstudio = FALSE)}.}
\item{...}{Optional arguments to pass to \code{\link[shiny]{runApp}}.}
}
Expand Down

0 comments on commit 9318de0

Please sign in to comment.