Loading Lavaan package

52 views
Skip to first unread message

VSan

unread,
Jun 12, 2020, 7:48:47 AM6/12/20
to lavaan
Hello,
I am new to R and have just installed R-studio. When I tried to load the lavaan package, below (1) is the message I get, but when I check whether it has loaded, below (2) is the error I get. Any help will be greatly appreciated. Thanks.

(1) The downloaded binary packages are in
/var/folders/dl/q0r8wxzx6m7d1bdtdh0b4ydm0000gp/T//RtmpK5l9NX/downloaded_packages

(2) Error: package or namespace load failed for ‘lavaan’ in get(method, envir = home):
 lazy-load database '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/lavaan/R/lavaan.rdb' is corrupt
In addition: Warning messages:
1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4],  :
  restarting interrupted promise evaluation
2: In get(method, envir = home) :
  restarting interrupted promise evaluation
3: In get(method, envir = home) : internal error -3 in R_decompress1

Hugo Harada

unread,
Jun 12, 2020, 6:36:12 PM6/12/20
to lav...@googlegroups.com
Do you have R installed in your system?


--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lavaan/c65de649-4dbd-4412-8f2d-ec5d598ec2a3o%40googlegroups.com.


--


Adaptativa

Hugo Harada
Sócio-fundador - COO

Adaptativa Inteligência Educacional S.A.
Cel: (11) 96345-0390
Rua Claudio Soares, 72 - Sala 411Pinheiros, CEP 05422-030, São Paulo - SP 
http://www.adaptativa.com.br

Facebook Twitter Google Plus Youtube

Vinita Sangtani

unread,
Jun 12, 2020, 9:18:25 PM6/12/20
to lavaan
Yes, I have.


On Friday, 12 June 2020 18:36:12 UTC-4, Hugo Harada wrote:
Do you have R installed in your system?


Em sex., 12 de jun. de 2020 às 08:48, VSan <VSan...@gmail.com> escreveu:
Hello,
I am new to R and have just installed R-studio. When I tried to load the lavaan package, below (1) is the message I get, but when I check whether it has loaded, below (2) is the error I get. Any help will be greatly appreciated. Thanks.

(1) The downloaded binary packages are in
/var/folders/dl/q0r8wxzx6m7d1bdtdh0b4ydm0000gp/T//RtmpK5l9NX/downloaded_packages

(2) Error: package or namespace load failed for ‘lavaan’ in get(method, envir = home):
 lazy-load database '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/lavaan/R/lavaan.rdb' is corrupt
In addition: Warning messages:
1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4],  :
  restarting interrupted promise evaluation
2: In get(method, envir = home) :
  restarting interrupted promise evaluation
3: In get(method, envir = home) : internal error -3 in R_decompress1

--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lav...@googlegroups.com.

Yves Rosseel

unread,
Jun 13, 2020, 1:06:14 AM6/13/20
to lav...@googlegroups.com
On 6/12/20 1:48 PM, VSan wrote:
> '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/lavaan/R/lavaan.rdb'
> is corrupt

Reinstall lavaan. Then restart R/Rstudio.

If you still get the same message, choose a different CRAN server.

Yves.

Vinita Sangtani

unread,
Jun 13, 2020, 6:16:58 AM6/13/20
to lavaan
Many thanks. That seems to make lavaan work. 

I am still unable to make my syntax work. I had saved the syntax from a previous attempt, so I'm not making any error, but the model will not run this time and it is recognizing my model syntax as filename instead of the model. So, the error is: 

Error in file(file, "r") : cannot open the connection
In addition: Warning message:
In file(file, "r") : cannot open file 'Purchase =~ ......(my model here).........: No such file or directory

Basically I'm following this syntax:
library(lavaan)
 
# specify the model
HS.model <- ' visual  =~ x1 + x2 + x3      
              textual =~ x4 + x5 + x6
              speed   =~ x7 + x8 + x9 '
 
# fit the model
fit <- cfa(HS.model, data=HolzingerSwineford1939)
 
# display summary output
summary(fit, fit.measures=TRUE)

Vinita Sangtani

unread,
Jun 13, 2020, 8:10:57 AM6/13/20
to lavaan
Thanks a ton, Yves. The same trick to quit and restart R made it work :)
Reply all
Reply to author
Forward
0 new messages