Closed astamm closed 2 years ago
What does R-Hub Linux platform checks say about it?
R-hub:
Winbuilder
For R-Hub Ubuntu, the relevant part is:
which complains about not finding nloptr
.
For Fedora:
which complains about not finding nloptr
too.
For Debian:
which complains about not finding Rcpp
, nloptr
, sbm
, RcppArmadillo
.
It could be that cmake
has to be configured properly in your GH action workflow for nloptr
to build properly in the absence of a suitable system build of NLopt. You can see for instance: https://github.com/astamm/nloptr/blob/3da87d968a6466394bb19b909a482b1587282a6d/.github/workflows/check-standard.yaml
All I could think of seems irrelevant. But like Dirk, I cannot reproduce the error from your CI, so I cannot investigate further.
I found the problem: (there were two competing issue). You corrected one with your first PR. But another linking problem was due to the use of the function arma::eigs_sym from armadillo which does not seems to be correctly linked. I am at the moment replacing this function by RSpectra::eigs_sym. This should correct the second pb.
That's great. If that solves it, we should probably close this PR full of nonsense trials :).
Updated GH action CI scripts to newer versions to see if error persists and simplified the
Makevars
file for now. If error persists, it might be related to the fact that the template forMakevars{.win}
when usingRcppArmadillo
are supposed to look like: https://stat.ethz.ch/pipermail/r-sig-debian/2020-October/003258.html. However, you seem to use a slightly different one.