I recently encountered an issue with multilevLCA that I suspect may be related to the latest package update. Until a couple of days ago, running multilevLCA 2.0.1 locally on RStudio worked like a charm. After updating to version 2.1.0, the same code now throws the following error:
Error: pinv(): svd failed
I even tried running the example provided by Lyrvall et al (2024), and the error persists. Interestingly, downgrading to version 2.0.1 did not resolve the issue, so I initially suspected a local machine problem. However, testing the same code on Posit Cloud and Google Colab also results in the same error. ChatGPTing for solutions was unfruitful, really.
Here is the example from Lyrvall et al I ran:
library(multilevLCA)
data("dataIEA")
data = dataIEA
Y = colnames(dataIEA)[5:16]
iT = 3
out = multiLCA(data, Y, iT)
Output:
Discarding rows with missing values for any indicator...
Fitting measurement model...
Error: pinv(): svd failed
Has anyone else encountered this issue and/or is aware of a fix/workaround?
In advance: thank you very much for time and support!
My local machine session info.
R version 4.5.1 (2025年06月13日)
Platform: aarch64-apple-darwin20
Running under: macOS Sequoia 15.6.1
-
2All packages on CRAN have a maintainer listed: CRAN.R-project.org/package=multilevLCA. If you believe this was a bug introduced by the newest version, I suggest you contact them since it's likely something they will need to fix in the package.MrFlick– MrFlick2025年10月27日 14:34:17 +00:00Commented Oct 27, 2025 at 14:34
-
1Hi all, quick update and perhaps valuable information for others. I reached out to the maintainer who responded that they are currently trying to fix the issue and are closing in. Seems related to updates in dependencies. Thanks again, @MrFlick.Robin Schädler– Robin Schädler2025年10月28日 08:00:12 +00:00Commented Oct 28, 2025 at 8:00