"lmerTest" package

Hi, I installed "lmerTest" package and when I tried to load the library "lmerTest", there is error message displaying, there is no package found irrespective of number of times the package been installed. Please may I know what the error could be? Thank you!

1 Like

Hi, welcome to the Forum.
Can you load the R and the package from the command-line or Windows GUI?

1 Like

I tried installing and loading lmerTest and didnt receive an error. Which environment do you use? Have you tried to restart R?

If nothing works, you could always try to install the developer version from GitHub using this code:

remotes::install_github("runehaubo/lmerTestR")
1 Like

I just tried installing and am getting some strange results.

> remotes::install_github("runehaubo/lmerTestR")
Skipping install of 'lmerTest' from a github remote, the SHA1 (282b9e93) has not changed since last install.
  Use `force = TRUE` to force installation

then

> library(lmerTestR)
Error in library(lmerTestR) : there is no package called ‘lmerTestR’

I cannot find any trace of the file.

1 Like

What happens if you set force = TRUE as an additional argument inside install_github()?

1 Like

Something just as weird. {limerTestR} again installed okay and it is in my packages library—see screenshot—but it is not loading. I tried [packman} and got:

Warning messages:
1: package ‘limerTest’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages 
2: 'BiocManager' not available.  Could not check Bioconductor.

Please use `install.packages('BiocManager')` and then retry. 
3: In p_install(package, character.only = TRUE, ...) : 
4: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called ‘limerTest’
5: In pacman::p_load(limerTest) : Failed to install/load:
limerTest

Continuing the adventure while installing {pax} I accidentally pasted library(limerTest) into the console and after {pak} was installed limerTest showed as installed! However after rebooting RStudio and trying to load *limerTest

I get

> library(limerTest)
Error in library(limerTest) : there is no package called ‘limerTest’

Okay, remove {limerTest} reboot and try {pak}. ARRRRH!!


> pak::pkg_install("limerTestR")
✔ Updated metadata database: 3.60 MB in 7 files.                          
✔ Updating metadata database ... done                                     
Error: 
! error in pak subprocess
Caused by error: 
! Could not solve package dependencies:
* limerTestR: Can't find package called limerTestR.
Type .Last.error to see the more details.

> .Last.error.trace
1. pak::pkg_install("limerTestR")
2. pak:::remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...), …
3. err$throw(res$error)

RStudio
RStudio 2026.01.2+418 "Apple Blossom" Release (1d903d3bd61a40d82bf71aad8471a5a388cc1f73, 2026-03-25) for Ubuntu Jammy
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) rstudio/2026.01.2+418 Chrome/140.0.7339.249 Electron/38.7.2 Safari/537.36, Quarto 1.8.25 (/opt/quarto/bin/quarto)

> sessionInfo()
R version 4.6.0 (2026-04-24)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 24.04.4 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.12.0 
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.12.0  LAPACK version 3.12.0

locale:
 [1] LC_CTYPE=en_CA.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_CA.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_CA.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

time zone: America/Toronto
tzcode source: system (glibc)

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

loaded via a namespace (and not attached):
[1] compiler_4.6.0    tools_4.6.0       rstudioapi_0.18.0
>
1 Like

This looks like a simple typo problem. The package name is lmerTest but you have input limerTest. The package installs correctly on Windows from CRAN. Although the GitHub version comes from "runehaubo/lmerTestR" the package is not lmerTestR. A successful install also includes the dependencies lme4 and matrix.
HTH

1 Like

Blast it, I should have caught that.

pacman::p_load(lmerTest)

works like a charm.

Thanks.

1 Like