I have trouble installing rstan on the following system:
- Operating System: Red Hat 7.5
- R Version: 3.5.1
Below is the error message:
- installing source package ‘rstan’ …
** package ‘rstan’ successfully unpacked and MD5 sums checked
** libs
Error in .shlib_internal(args) :
C++14 standard requested but CXX14 is not defined - removing ‘/home/gangchen/R/x86_64-redhat-linux-gnu-library/3.5/rstan’
ERROR: dependency ‘rstan’ is not available for package ‘shinystan’ - removing ‘/home/gangchen/R/x86_64-redhat-linux-gnu-library/3.5/shinystan’
ERROR: dependencies ‘rstan’, ‘shinystan’ are not available for package ‘brms’ - removing ‘/home/gangchen/R/x86_64-redhat-linux-gnu-library/3.5/brms’
How to fix it?