I would like to use blavaan (version 0.3-5) for my analysis. Installing the package blavaan
seems to work (i.e., no error messages), but when I try to load the library 'blavaan', I receive the following error message:
Error: package or namespace load failed for ‘blavaan’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘pkgbuild’
This is the error message I receive in the newest version of R (3.6.1). I checked, and it appears af if the package pkgbuild
may not compatible with this version. Therefore, I tried an older version of R (3.5.3) in which blavaan was created. So then it should work, right?
But then again I receive a similar error message. This time for a package called vctrs
.
For some background: I have experience with lavaan
('regular' SEM), and wanted to give blavaan a try. I know my way around lavaan and basic R, but I am not a programmer/mathematician or something like that. I think the best solution for me is to just use a version of R that others know will work, rather than having to program my way around.
This is the code I used, but I don't think that is the issue:
install.packages("blavaan", dep = TRUE)
library(blavaan)
After installing 'blavaan', I get the following message:
package ‘blavaan’ successfully unpacked and MD5 sums checked The downloaded binary packages are in [location]
However, after opening the library 'blavaan', I receive the following error:
Error: package or namespace load failed for ‘blavaan’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘pkgbuild’ [or 'vctrs' etc.]
I have only just started using blavaan (or: trying to...), so I only have tried the newest version of blavaan (0.3-5) that was updated on August 3rd, 2019.
Has anybody since then used blavaan? And if so, which version of R did you use?