Hi, I am trying to install brms package on my Linux R server. Below is the specification of my platform:
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 3
minor 6.3
year 2020
month 02
day 29
svn rev 77875
language R
version.string R version 3.6.3 (2020-02-29)
nickname Holding the Windsock
In order to install the brms package I am using below installation command:
Error in .shlib_internal(args) :
C++14 standard requested but CXX14 is not defined
* removing ‘/opt/R/3.6.3/rstan’
Warning in install.packages :
installation of package ‘rstan’ had non-zero exit status
It would be very helpful if someone could support me. My objective is to use “brm” function.
On this page you can find instructions to install the system dependencies. This is going to depend on the exact version of the operating system you have installed (you don't mention what you are using).
Let's imagine you are using Ubuntu 20-04, in which case the instructions are:
Thank you so much Martin for the suggestion. I have installed cmdstanr and have run
options(brms.backend = "cmdstanr"). However, I am still not able to use "brm" function.
My final objective is to run bayesian regression model and I am using "brm" function for that. "brm" function comes with "brms" package, which requires rstan as dependecy.
Could you please help how can I use brm function using cmdstanr?