Running examples in ‘lvnet-Ex.R’ failed
The error most likely occurred in:

> ### Name: lvnet
> ### Title: Confirmatory Latent Variable Network Models
> ### Aliases: lvnet
> 
> ### ** Examples
> 
> # Load dataset:
> library("lavaan")
This is lavaan 0.6-10
lavaan is FREE software! Please report any bugs.
> data(HolzingerSwineford1939)
> Data <- HolzingerSwineford1939[,7:15]
> 
> # Measurement model:
> Lambda <- matrix(0, 9, 3)
> Lambda[1:3,1] <- NA
> Lambda[4:6,2] <- NA
> Lambda[7:9,3] <- NA
> 
> # Fit CFA model:
> CFA <- lvnet(Data, lambda = Lambda)
> 
> # Latent network:
> Omega_psi <- matrix(c(
+   0,NA,NA,
+   NA,0,0,
+   NA,0,0
+ ),3,3,byrow=TRUE)
> 
> # Fit model:
> LNM <- lvnet(Data, lambda = Lambda, omega_psi=Omega_psi)
> 
> # Compare fit:
> lvnetCompare(cfa=CFA,lnm=LNM)
          Df      AIC      BIC     EBIC    Chisq Chisq diff Df diff
Saturated  0       NA       NA       NA  0.00000         NA      NA
cfa       24 7517.490 7595.339 7835.038 85.30552  85.305522      24
lnm       25 7516.494 7590.637 7818.921 86.31009   1.004565       1
            Pr(>Chisq)
Saturated           NA
cfa       8.502553e-09
lnm       3.162085e-01
> 
> # Summary:
> summary(LNM)
========== lvnet ANALYSIS RESULTS ========== 

Input: 
	Model:			 
	Number of manifests:	 9 
	Number of latents:	 3 
	Number of parameters:	 20 
	Number of observations	 301

Test for exact fit: 
	Chi-square:		 86.31 
	DF:			 25 
	p-value:		 0

Information criteria: 
	AIC:			 7516.494 
	BIC:			 7590.637 
	Adjusted BIC:		 7527.208 
	Extended BIC:		 7818.921

Fit indices: 
	CFI:			 0.931 
	NFI:			 0.906 
	TLI:			 0.9 
	RFI:			 0.865 
	IFI:			 0.931 
	RNI:			 0.931 
	RMR:			 0.077 
	SRMR:			 0.061

RMSEA: 
	RMSEA:			 0.09 
	90% CI lower bound:	 0.07 
	90% CI upper bound:	 0.111 
	p-value:		 0.001

Parameter estimates:
    matrix row col          name Estimate
    lambda   1   1    lambda_1_1    0.708
    lambda   2   1    lambda_2_1    0.393
    lambda   3   1    lambda_3_1    0.517
    lambda   4   2    lambda_4_2    0.874
    lambda   5   2    lambda_5_2    0.971
    lambda   6   2    lambda_6_2    0.809
    lambda   7   3    lambda_7_3    0.537
    lambda   8   3    lambda_8_3    0.639
    lambda   9   3    lambda_9_3    0.587
     theta   1   1     theta_1_1    0.559
     theta   2   2     theta_2_2    1.135
     theta   3   3     theta_3_3    0.848
     theta   4   4     theta_4_4    0.370
     theta   5   5     theta_5_5    0.448
     theta   6   6     theta_6_6    0.356
     theta   7   7     theta_7_7    0.805
     theta   8   8     theta_8_8    0.487
     theta   9   9     theta_9_9    0.563
 omega_psi   1   2 omega_psi_1_2    0.422
 omega_psi   1   3 omega_psi_1_3    0.442
> 
> # Plot latents:
> plot(LNM, "factorStructure")
Error in if (class(arguments[[i]]) == "qgraph") { : 
  the condition has length > 1
Calls: plot -> plot.lvnet -> <Anonymous>
Execution halted