I have the following packages loaded and I have tried reinstalling them in case it had not downloaded properly. That was not the issue. I'm working on the latest version of R and R studio.
library(Matrix)
library(lme4)
library(lmerTest)
library(emmeans)
library(stats)
library(fitdistrplus)
library(tidyverse)
library(buildmer)
library(performance)
library(see)
library(sjPlot)
After importing and transforming my data a little bit e.g. recoding 1's and 2's to more meaningful labels. I have run the following code which has always worked for me in the past.
modelRT4 <- lmer(RT4 ~ condition_number +
(1 + condition_number | participant) +
(1 + condition_number | item_number),
data = alldata_Pred_RT, REML = TRUE)
However, now I am getting the error code...
Error in diag(Lambdat) : object 'R_sparse_diag_get' not found
For context RT4 is a reaction time measure in seconds. Whilst the others are self-explanatory.
I'm having no problems getting descriptives or visualising the data using violin plots and box plots.
Any ideas why this might be and what can be done to rectify this? I can show more code if needed.
The full code can be found on my GitHub page: https://github.com/E-LeLuan/ASC_small/blob/master/Tidy_RT_data/Prediction/Prediction_tidy_script.R