I am trying to install RStan on my Macbook (OS Catalina 10.15.1) in RStudio (version 1.0.143) using the steps on https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started. I checked whether the C++ toolchain is properly installed using the command
pkgbuild::has_build_tools(debug = TRUE)
which returned FALSE. I then followed the instructions to download the macOS R toolchain installer, and was able to download macos-rtools-3.2.2.pkg at https://github.com/rmacoslib/r-macos-rtools/releases/tag/v3.2.2.
My problem is that my Macbook won’t open this .pkg file because “because Apple cannot check it for malicious software”. I have tried to override this by right-clicking on the .pkg file and selecting Open, but even after overriding the security preferences to install the app, I get the following error code:
The operation couldn’t be completed. (OSStatus error -60008.)
Could anyone please help me figure out how to install this toolchain–maybe using the command line?
Thanks in advance!