I believe these are the three that keep repeating throughout the messages, thanks!
/Library/Frameworks/R.framework/Versions/3.6/Resources/library/StanHeaders/include/stan/math/prim/mat/eigen_plugins.h:22:30: error: no template named 'conditional_t' in namespace 'std'; did you mean 'conditional'?
using double_return_t = std::conditional_t<std::is_const<std::remove_reference_t<T>>::value,
~~~~~^~~~~~~~~~~~~
conditional
/usr/local/clang7/include/c++/v1/type_traits:424:33: note: 'conditional' declared here
struct _LIBCPP_TEMPLATE_VIS conditional {typedef _If type;};
/Library/Frameworks/R.framework/Versions/3.6/Resources/library/StanHeaders/include/stan/math/prim/mat/eigen_plugins.h:22:63: error: no template named 'remove_reference_t' in namespace 'std'; did you mean 'remove_reference'?
using double_return_t = std::conditional_t<std::is_const<std::remove_reference_t<T>>::value,
~~~~~^~~~~~~~~~~~~~~~~~
remove_reference
/usr/local/clang7/include/c++/v1/type_traits:1110:50: note: 'remove_reference' declared here
template <class _Tp> struct _LIBCPP_TEMPLATE_VIS remove_reference {typedef _Tp type;};
/Library/Frameworks/R.framework/Versions/3.6/Resources/library/StanHeaders/include/stan/math/prim/mat/eigen_plugins.h:60:10: error: no template named 'enable_if_t' in namespace 'std'; did you mean 'enable_if'?
std::enable_if_t<std::is_pointer<T>::value, reverse_return_t<T>>
~~~~~^~~~~~~~~~~
enable_if
/usr/local/clang7/include/c++/v1/type_traits:435:63: note: 'enable_if' declared here
template <bool, class _Tp = void> struct _LIBCPP_TEMPLATE_VIS enable_if {};
I used the latest installer linked above, but that left me with a non-working setup for running stan models. The reasons seems to be that the tools leave you with a ~/.R/Makevars with this content:
… and for everyone who is blocked by Catalina not being allowed to install the .pkg file… a simple CTRL+right click on the file, then clicking “Open” will get the installer going (for me).
@riko, note however that with R v4.0.0 nothing much is needed in the ~/.R/Makevars anymore (well, compiler settings perhaps, but that’s it). In mine I only have this now:
I´m using R v4.0.0 on macOS Catalina 10.15.2. and I´m still facing the same problem.
clang-7: error: no such file or directory: ‘/Library/Frameworks/R.framework/Resources/lib/libc++abi.1.dylib’
make: *** [rstan.so] Error 1
ERROR: compilation failed for package ‘rstan’
restoring previous ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/rstan’
Warning in install.packages :
installation of package ‘rstan’ had non-zero exit status