demo/SETUP.R

stopifnot(require(rstanarm))
stopifnot(require(loo))
stopifnot(require(ggplot2))
stopifnot(require(parallel))
options(mc.cores = parallel::detectCores())

SEED <- 12345L
REFRESH <- 1000L

if (R.version$major < 3 || R.version$minor < 2.0)
  warning("This demo may not work on older versions of R due to HTTPS URLs")

ROOT <- "https://raw.githubusercontent.com/stan-dev/example-models/master/"
DATA_ENV <- new.env()

Try the rstanarm package in your browser

Any scripts or data that you put into this service are public.

rstanarm documentation built on Sept. 14, 2023, 1:07 a.m.