This package offers functionalities for computing multivariate normal and Student-t probabilities. The meanings of this package:
pmvnorm
and pmvt
functions)For better performance, the package should be compiled with a proper optimization flag. To achieve this, you can do either of the following in the Makevars file under ~/.R directory:
The goal here is to override the default compiler options used by R. The default options are fine, just not the fastest.
After some installations on Mac OS, two issues may happen:
The explanation can be sought from: https://cran.r-project.org/bin/macosx/tools/
And the solution is:
If you are encountering the issue "C++14 standard requested but CXX14 is not defined", one option is to append the Makevars.win file under the .R directory with:
CXX11FLAGS=-O3 -Wno-unused-variable -Wno-unused-function CXX14FLAGS=-O3 -Wno-unused-variable -Wno-unused-function CXX14 = $(BINPREF)g++ -m$(WIN) -std=c++1y
Thanks to Robert Aue for providing this solution.
Then hopefully the installation works!
install.packages('tlrmvnmvt')