| Title: | Graphical User Interface ('shiny' App) for 'brms' |
| Version: | 1.8.0 |
| Date: | 2022-07-30 |
| Description: | A graphical user interface (GUI) for fitting Bayesian regression models using the package 'brms' which in turn relies on 'Stan' (https://mc-stan.org/). The 'shinybrms' GUI is a 'shiny' app. |
| License: | GPL-3 | file LICENSE |
| URL: | https://fweber144.github.io/shinybrms/ |
| BugReports: | https://github.com/fweber144/shinybrms/issues |
| Depends: | R (≥ 3.6.0) |
| Imports: | shiny (≥ 1.7.0), brms (≥ 2.16.0), rstan (≥ 2.19.3), rlang |
| Suggests: | cmdstanr, ggplot2, shinystan (≥ 2.4.0), callr (≥ 3.4.0), rstanarm, MASS, lme4, testthat, shinytest |
| Additional_repositories: | https://mc-stan.org/r-packages/ |
| Encoding: | UTF-8 |
| RoxygenNote: | 7.2.1 |
| NeedsCompilation: | no |
| Packaged: | 2022-08-05 05:04:21 UTC; frank |
| Author: | Frank Weber |
| Maintainer: | Frank Weber <fweber144@protonmail.com> |
| Repository: | CRAN |
| Date/Publication: | 2022-08-05 22:50:07 UTC |
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 optionbrowserto be used for opening the Stan progress file (an HTML file). Defaults to optionbrowser(seebase::options()). Note that RStudio's default for optionbrowsercannot be used for the Stan progress file. Therefore, shinybrms automatically redefines RStudio's default for optionbrowserto fix this issue. -
shinybrms.shinystan_browser: The value for the global optionbrowserto be used for opening the shinystan app. Defaults to optionbrowser(seebase::options()). Note that RStudio's default for optionbrowsercannot be used for opening the shinystan app from within shinybrms. Therefore, shinybrms automatically redefines RStudio's default for optionbrowserto 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.coresis set, then the advanced option "Cores" (in the shinybrms app) defaults to the value of this option. If optionmc.coresis not set, then the advanced option "Cores" defaults to the value returned byparallel::detectCores(). -
brms.backend(seebrms::brm()): If optionbrms.backendis set, then the advanced option "Backend" (in the shinybrms app) defaults to the value of this option. If optionbrms.backendis 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)
}