I'm trying to install a package in RStudio from Github (this package called FEct) and getting errors related to the XCode Command Line tools.
The errors:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:321:9: error: no member named 'isnan' in the global namespace
and errors like this for other cmath functions, in addition to
/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppArmadillo/include/armadillo_bits/arma_cmath.hpp:42:15: error: expected unqualified-id
and several very similar errors.
Things I've tried:
When I run xcrun --show-sdk-path
I get
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
When I run clang++ -v
I get
clang version 4.0.1 (tags/RELEASE_401/final)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Users/MyName/opt/anaconda3/bin
I am trying to install from the RStudio editor (downloaded from the official R website, rather than the one installed by Anaconda Navigator). I recently updated my Mac to OSX Big Sur, version 11.2.