Error messages in R

13 views
Skip to first unread message

Charles masquelier

unread,
Oct 28, 2025, 9:23:12 AM10/28/25
to QCA with R
Hi everyone,

I hope you can help. I used the QCA package in R a few years ago and am now using it again. I have tried to update the package but getting the error message below after installation. Is that a problem? Also, it looms like the 'psych' and 'venn' package no longer exist. I keep trying to install them but get this error message:  Error in library(psych) : there is no package called ‘psych’.

Can you help at all?

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace 'htmltools' 0.5.5 is being loaded, but >= 0.5.8 is required Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace Execution halted ERROR: lazy loading failed for package 'bslib' * removing 'C:/Users/Charlie/OneDrive/Documents/R/win-library/4.1/bslib' * installing *source* package 'venn' ... ** package 'venn' successfully unpacked and MD5 sums checked ** using staged installation ** R ** inst ** byte-compile and prepare package for lazy loading Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace 'admisc' 0.31 is being loaded, but >= 0.33 is required Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace Execution halted ERROR: lazy loading failed for package 'venn' * removing 'C:/Users/Charlie/OneDrive/Documents/R/win-library/4.1/venn' ERROR: dependency 'bslib' is not available for package 'shiny' * removing 'C:/Users/Charlie/OneDrive/Documents/R/win-library/4.1/shiny' The downloaded source packages are in ‘C:\Users\Charlie\AppData\Local\Temp\RtmpEJ9bij\downloaded_packages’

Ingo Rohlfing

unread,
Oct 28, 2025, 10:06:03 AM10/28/25
to QCA with R
Dear Charles,

I am not sure whether this is this the issue, but it looks like you are using R version 4.1.x. At present, the release version is 4.5.1. The R version may be too old for the package versions you need to install. Even if not, there seems to be versioning issues, as the error message says, for example, that admisc (a dependency of QCA) should be 0.33 or higher, but that you try to install 0.31. I suggest updating the R version, the RStudio version (if you use it) and to install the packages for the new R version.

Regards

Ingo

Adrian Dușa

unread,
Oct 28, 2025, 10:30:06 AM10/28/25
to QCA with R
Dear Charles,

Ingo's suggestion should take you on the right track, there's nothing wrong with updating R to its newest version.
Not exactly sure what CRAN's policies are, but packages venn, admisc and QCA require an R version >= 3.5.0 or >= 3.6.0 so (in principle) they should still work under R 4.1.0

Most likely it is the QCA package dependencies that require a newer version or R, so updating it would be the safest approach. After (and only after) updating R and all packages, there is also this possibility to update the QCA family of packages to their latest development version, for instance:

install.packages(c("admisc", "QCA"), repos = "dusadrian.r-universe,dev")

Best regards,
Adrian

Christopher Willis

unread,
Oct 29, 2025, 8:22:23 PM10/29/25
to QCA with R

Hi Adrian and Charles

A small caveat with the statement "there's nothing wrong with updating R to its newest version"

99.9% of the time, this is true. But be careful with upgrades if using machine learning. Once the machine is trained, upgrading dependencies can impact results and functionality. Using "renv" or another package control software OR virtual environments like "virtualenv" can be important.

Best,
Chris

Adrian Dușa

unread,
Oct 30, 2025, 2:52:12 AM10/30/25
to QCA with R
Hi Chris,

Yes indeed, but I should have added there's nothing wrong with updating R for the purpose of QCA.
More sophisticated users, such as you mention, using machine learning or other advanced tools surely have more knowledge about packages and their version dependencies.

Best,
Adrian

Reply all
Reply to author
Forward
0 new messages