Brms mojave install fails

Please also provide the following information in addition to your question:

  • Operating System: OS 10.14.1
  • brms Version:

Hi brms users, when I upgraded to Mojave brms stopped working. I reinstalled xcode and the command line tools, then tried to update brms, now it won’t even recognize or install the brms package.

install.packages(“brms”, dep=T)
Warning in install.packages :
dependency ‘rstan’ is not available

There is a binary version available but the source version is later:
binary source needs_compilation
brms 2.0.1 2.6.0 FALSE

installing the source package ‘brms’

trying URL ‘
Content type ‘application/x-gzip’ length 4298482 bytes (4.1 MB)

downloaded 4.1 MB

Warning in strptime(xx, f <- “%Y-%m-%d %H:%M:%OS”, tz = tz) :
unknown timezone ‘zone/tz/2018g.1.0/zoneinfo/America/Chicago’

  • installing source package ‘brms’ …
    ** package ‘brms’ successfully unpacked and MD5 sums checked
    ** R
    Warning: namespace ‘brms’ is not available and has been replaced
    by .GlobalEnv when processing object ‘brmsfit_example1’
    ** data
    *** moving datasets to lazyload DB
    ** inst
    ** preparing package for lazy loading
    Warning: package ‘Rcpp’ was built under R version 3.3.2
    Warning: package ‘ggplot2’ was built under R version 3.3.2
    Error in loadNamespace(j <- imp[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
    namespace ‘rstan’ 2.16.2 is already loaded, but >= 2.17.2 is required
    ERROR: lazy loading failed for package ‘brms’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/brms’
    Warning in install.packages :
    installation of package ‘brms’ had non-zero exit status

The downloaded source packages are in

You first need to update your rstan in a clean R session. Then you can install brms from source, although the binary version of brms is probably fine unless you are trying to utilize something that was just added.