Error in initializePtr() with lme4 package

I'm encountering the error "Error in initializePtr(): function 'chm_factor_ldetL2' not provided by package 'Matrix'" when using the 'lmer()' function from the 'lme4' package in R. I've tried reinstalling the 'Matrix' package and updating all packages, but the error persists. Any suggestions on how to resolve this would be appreciated. Thank you!

My codes are:
model <- lmer(Weight ~ Age + (1 | Subjects), data = datafm12)

Additional Information:
R version: 4.3.3
Operating system: Windows 11 Pro

Thank you for all!
Now, I have solved the problem after reinstalling both R & R studio!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.