Hi Hong,
Thanks a lot for the swift reply! You give a good start point to figure out the problem. When installing package, some functions work well, such as arma::mean. And some operator also works well, such as Mat + Mat.
But when I tried Mat * Mat, it outputs error " arma.o:arma.cpp:(.text+0x14bb): undefined reference to `dgemv_' "
And when I tried Mat % Mat, it outputs a similar error information.
Do you by any chance know how to solve this? BTW, when I used sourceCpp(), it works well.
(Update: try first create an R package with RcppArmadillo and then add something to import RcppParallel, and then it works)
Thanks,
Wenjian