Ivis4ml / fssemR

An optimizer of Fused-Sparse Structural Equation Models, which is the state-of-the-art (sota) jointly fused sparse maximum likelihood function for structural equation models proposed by Xin Zhou and Xiaodong Cai
4 stars 2 forks source link

permit compilation under Eigen 3.4.0 #3

Closed eddelbuettel closed 2 years ago

eddelbuettel commented 2 years ago

Dear Xin Zhou, dear fssemR team,

Eigen 3.4.0 was released earlier in the year, and I have been asked to update RcppEigen to it. As documented in this issue at its GitHub repo, there are about 10 packages that built at CRAN under the previous release, but not with the Eigen 3.4.0 changes in the release candidate package -- which can be installed via

install.packages("RcppEigen", repo="https://RcppCore.github.io/drat")

For fssemR, the change is fairly simple. Apparently Eigen 3.4.0 gets confused from Eigen objects used as matrix indices. With the simple changes in this PR, the package installs for me.

It would be helpful for RcppEigen if you could apply the patch and release an updated version so that RcppEigen could be upgraded to a version with Eigen 3.4.0.

Let me know if you have any question, and please do not hesitate to reply and ask.

Cheers, Dirk (who looks after RcppEigen ...)