Skip to content

Instantly share code, notes, and snippets.

@JoFrhwld
Created June 16, 2023 15:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoFrhwld/105a8a5fc69c1825f27e876ed113069d to your computer and use it in GitHub Desktop.
Save JoFrhwld/105a8a5fc69c1825f27e876ed113069d to your computer and use it in GitHub Desktop.
My brms install as of 2023-06-16
# I don't understand why or how this
# plus what's in Makevars works, but it's
# the only way I can get rstan & brms installed\
# see also: https://github.com/stan-dev/rstan/issues/1070#issuecomment-1570565599
# renv::init(bare = TRUE)
Sys.setenv(MAKEFLAGS = "-j4") # four cores used
install.packages(c("Rcpp", "RcppEigen", "RcppParallel", "StanHeaders"), type = "source")
install.packages("rstan", type = "source")
example(stan_model, package = "rstan", run.dontrun = TRUE)
install.packages("brms")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment