I recently updated my MacOS software to Mojave and since I have not been able to use Stan with R. When I try loading the ‘rstan’ package, I get the following error:
Loading required package: StanHeaders
Error in value[3L] :
Package ‘StanHeaders’ version 2.17.2 cannot be unloaded:
Error in unloadNamespace(package) : namespace ‘StanHeaders’ is imported by ‘rstan’ so cannot be unloaded
I have tried to look at re-installing RStan, but when I execute
pkgbuild::has_build_tools(debug = TRUE)
I return FALSE, so I think it might be something wrong with my C++ toolchain. I followed some pages to https://github.com/stan-dev/rstan/wiki/Installing-RStan-from-source-on-a-Mac#prerequisite--c-toolchain-and-configuration, which states that the macOS R toolchain installer isn’t ready for Mojave yet. Does this mean I’m going to just have to wait til the installer is out?
I’m not really sure what this necessarily means, so any help would be much appreciated!