launch_shinybrms {shinybrms} | R Documentation |
Launch the shinybrms app
Description
This function launches the shinybrms app.
Usage
launch_shinybrms(...)
Arguments
... |
Arguments passed to |
Value
TRUE
(invisible).
Note
The following global options are introduced by shinybrms:
-
shinybrms.allow_upd
: Mainly for internal testing purposes. A single logical value indicating whether updating a previous model fit usingbrms:::update.brmsfit()
is allowed. Defaults toTRUE
. -
shinybrms.prog_browser
: The value for the global optionbrowser
to be used for opening the Stan progress file (an HTML file). Defaults to optionbrowser
(seebase::options()
). Note that RStudio's default for optionbrowser
cannot be used for the Stan progress file. Therefore, shinybrms automatically redefines RStudio's default for optionbrowser
to fix this issue. -
shinybrms.shinystan_browser
: The value for the global optionbrowser
to be used for opening the shinystan app. Defaults to optionbrowser
(seebase::options()
). Note that RStudio's default for optionbrowser
cannot be used for opening the shinystan app from within shinybrms. Therefore, shinybrms automatically redefines RStudio's default for optionbrowser
to fix this issue.
External global options used by shinybrms are:
-
shiny.maxRequestSize
(seeshiny::shinyOptions()
): If not specified by the user, then shinybrms uses a value of50 * 1024^2
(corresponding to 50 MB). -
warn
(seebase::options()
): Set and reset internally (necessary for catching some warning messages). -
browser
(seebase::options()
): Set and reset internally (see above). -
mc.cores
(seebase::options()
): If optionmc.cores
is set, then the advanced option "Cores" (in the shinybrms app) defaults to the value of this option. If optionmc.cores
is not set, then the advanced option "Cores" defaults to the value returned byparallel::detectCores()
. -
brms.backend
(seebrms::brm()
): If optionbrms.backend
is set, then the advanced option "Backend" (in the shinybrms app) defaults to the value of this option. If optionbrms.backend
is not set, then the advanced option "Backend" defaults to"rstan"
.
Note that shinystan's global option shinystan.rstudio
(see
shinystan::launch_shinystan()
) may not be used here as shinystan is
called from an external R process where RStudio's browsers are not
available.
Examples
if (interactive()) {
launch_shinybrms(launch.browser = TRUE)
}