Fatal error - Running lmer

Hi! I am a beginner trying to model microbiome alpha diversity in Rstudio, and have been stuck, as every time I try to run the lmer function in Rstudio, R aborts and terminates my session. I have tried updating R, updating packages, removing and re-installing packages, and detaching packages that may mask the function, with no luck.

I have tried running the example code on the Rstudio help documentation, and that also aborts, as well as when I try to run code using 'lmer' from online tutorials and old code that worked in the past. However, in the Windows console, this code worked :

lmer(Reaction ~ Days + (1|Subject), sleepstudy)

I am wondering what else I can do to troubleshoot, thanks! :slight_smile:

I have R 4.3.2 and ‘lme4’ version 1.1-35.1, and am working on a Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz 1.99 GHz with Windows 11. My session info was: "
R version 4.3.2 (2023-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22621)

Matrix products: default

[1] LC_COLLATE=English_United States.utf8
[2] LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8
[5] LC_TIME=English_United States.utf8

time zone: Europe/Budapest
tzcode source: internal

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] lme4_1.1-35.1 Matrix_1.6-1.1

loaded via a namespace (and not attached):
[1] minqa_1.2.6 MASS_7.3-60 compiler_4.3.2 Rcpp_1.0.11 splines_4.3.2
[6] nlme_3.1-163 grid_4.3.2 nloptr_2.0.3 boot_1.3-28.1 lattice_0.21-9"

Hi, welcome to the forum.

I think the first thing to do is to check if R is working.

Try running the same script in the R GUI.

Can you run anything successfully in Rstudio? As an example does

with(airquality, cor(Wind, Temp))

run successfully in RStudio and in the R GUI?

This topic was automatically closed 42 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.