CRAN Package Check Results for Package semPlot

Last updated on 2014-04-19 09:52:27.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.0 10.58 85.37 95.94 OK
r-devel-linux-x86_64-debian-gcc 1.0.0 10.81 85.91 96.72 OK
r-devel-linux-x86_64-fedora-clang 1.0.0 204.68 OK
r-devel-linux-x86_64-fedora-gcc 1.0.0 198.23 OK
r-devel-macosx-x86_64-clang 1.0.0 182.48 OK
r-devel-macosx-x86_64-gcc 1.0.0 ERROR
r-devel-windows-ix86+x86_64 1.0.0 25.00 125.00 150.00 OK
r-patched-linux-x86_64 1.0.0 10.44 87.00 97.44 OK
r-patched-solaris-sparc 1.0.0 1046.90 OK
r-patched-solaris-x86 1.0.0 253.40 OK
r-release-linux-ix86 1.0.0 20.00 132.00 152.00 OK
r-release-linux-x86_64 1.0.0 10.64 142.01 152.66 ERROR
r-release-macosx-x86_64 1.0.0 OK
r-release-windows-ix86+x86_64 1.0.0 30.00 122.00 152.00 OK
r-oldrel-windows-ix86+x86_64 1.0.0 25.00 115.00 140.00 OK

Check Details

Version: 1.0.0
Check: package dependencies
Result: ERROR
    Packages required but not available: ‘qgraph’ ‘XML’ ‘igraph’ ‘rockchalk’
    
    See the information on DESCRIPTION files in the chapter ‘Creating R
    packages’ of the ‘Writing R Extensions’ manual.
Flavor: r-devel-macosx-x86_64-gcc

Version: 1.0.0
Check: examples
Result: ERROR
    Running examples in ‘semPlot-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: semPaths
    > ### Title: Plot path diagram for SEM models.
    > ### Aliases: semPaths
    >
    > ### ** Examples
    > # Regression analysis with interaction effects ----------------------------
    >
    > # A silly dataset:
    > X <- rnorm(100)
    > Y <- rnorm(100)
    > Z <- rnorm(1)*X + rnorm(1)*Y + rnorm(1)*X*Y
    > DF <- data.frame(X,Y,Z)
    >
    > # Regression including interaction:
    > res <- lm(Z ~ X*Y, data = DF)
    >
    > # Path diagram:
    > semPaths(res, intAtSide=TRUE)
    >
    > # Standardized estimates:
    > semPaths(res,"std","hide", intAtSide=TRUE)
    >
    > # Simple CFA -------------------------------------------
    > library("lavaan")
    This is lavaan 0.5-16
    lavaan is BETA software! Please report any bugs.
    > example(cfa)
    
    cfa> ## The famous Holzinger and Swineford (1939) example
    cfa> HS.model <- ' visual =~ x1 + x2 + x3
    cfa+ textual =~ x4 + x5 + x6
    cfa+ speed =~ x7 + x8 + x9 '
    
    cfa> fit <- cfa(HS.model, data=HolzingerSwineford1939)
    
    cfa> summary(fit, fit.measures=TRUE)
    lavaan (0.5-16) converged normally after 35 iterations
    
     Number of observations 301
    
     Estimator ML
     Minimum Function Test Statistic 85.306
     Degrees of freedom 24
     P-value (Chi-square) 0.000
    
    Model test baseline model:
    
     Minimum Function Test Statistic 918.852
     Degrees of freedom 36
     P-value 0.000
    
    User model versus baseline model:
    
     Comparative Fit Index (CFI) 0.931
     Tucker-Lewis Index (TLI) 0.896
    
    Loglikelihood and Information Criteria:
    
     Loglikelihood user model (H0) -3737.745
     Loglikelihood unrestricted model (H1) -3695.092
    
     Number of free parameters 21
     Akaike (AIC) 7517.490
     Bayesian (BIC) 7595.339
     Sample-size adjusted Bayesian (BIC) 7528.739
    
    Root Mean Square Error of Approximation:
    
     RMSEA 0.092
     90 Percent Confidence Interval 0.071 0.114
     P-value RMSEA <= 0.05 0.001
    
    Standardized Root Mean Square Residual:
    
     SRMR 0.065
    
    Parameter estimates:
    
     Information Expected
     Standard Errors Standard
    
     Estimate Std.err Z-value P(>|z|)
    Latent variables:
     visual =~
     x1 1.000
     x2 0.554 0.100 5.554 0.000
     x3 0.729 0.109 6.685 0.000
     textual =~
     x4 1.000
     x5 1.113 0.065 17.014 0.000
     x6 0.926 0.055 16.703 0.000
     speed =~
     x7 1.000
     x8 1.180 0.165 7.152 0.000
     x9 1.082 0.151 7.155 0.000
    
    Covariances:
     visual ~~
     textual 0.408 0.074 5.552 0.000
     speed 0.262 0.056 4.660 0.000
     textual ~~
     speed 0.173 0.049 3.518 0.000
    
    Variances:
     x1 0.549 0.114
     x2 1.134 0.102
     x3 0.844 0.091
     x4 0.371 0.048
     x5 0.446 0.058
     x6 0.356 0.043
     x7 0.799 0.081
     x8 0.488 0.074
     x9 0.566 0.071
     visual 0.809 0.145
     textual 0.979 0.112
     speed 0.384 0.086
    
    >
    > semPaths(fit, 'std', 'est', curveAdjacent = TRUE, style = "lisrel")
    >
    >
    > # MIMIC model ----------------------------------------------------
    > ## Lavaan
    > ## Not run:
    > ##D library("lavaan")
    > ##D
    > ##D # Example 5.8 from mplus user guide:
    > ##D Data <- read.table("http://www.statmodel.com/usersguide/chap5/ex5.8.dat")
    > ##D names(Data) <- c(paste("y", 1:6, sep=""),
    > ##D paste("x", 1:3, sep=""))
    > ##D
    > ##D # Model:
    > ##D model.Lavaan <- 'f1 =~ y1 + y2 + y3
    > ##D f2 =~ y4 + y5 + y6
    > ##D f1 + f2 ~ x1 + x2 + x3 '
    > ##D
    > ##D # Run Lavaan:
    > ##D library("lavaan")
    > ##D fit <- lavaan:::cfa(model.Lavaan, data=Data, std.lv=TRUE)
    > ##D
    > ##D # Plot path diagram:
    > ##D semPaths(fit,title=FALSE)
    > ##D
    > ##D # Omit exogenous covariances:
    > ##D semPaths(fit,title=FALSE, exoVar = FALSE, exoCov = FALSE)
    > ##D
    > ##D # Standardized parameters:
    > ##D semPaths(fit,"std",edge.label.cex=0.5=, exoVar = FALSE,
    > ##D exoCov = FALSE)
    > ##D
    > ## End(Not run)
    > ## Mplus
    >
    > # Same model, now using mplus output:
    > outfile <- tempfile(fileext=".out")
    > download.file("http://www.statmodel.com/usersguide/chap5/ex5.8.out",outfile)
    trying URL 'http://www.statmodel.com/usersguide/chap5/ex5.8.out'
    Content type 'text/plain' length 5016 bytes
    opened URL
    ==================================================
    downloaded 5016 bytes
    
    >
    > # Plot model:
    > semPaths(outfile,intercepts=FALSE)
    Loading required package: MplusAutomation
    Loading required package: plyr
    Loading required package: boot
    Reading model: /tmp/RtmpurykCe/file4484416103ea.out
    > # Note that mplus did not report the fixed variances of the exogenous variables.
    >
    >
    >
    >
    > # Thresholds -----------------------------------------------------
    > ## Not run:
    > ##D ## Lavaan
    > ##D
    > ##D # Example 5.8 from mplus user guide:
    > ##D Data <- read.table("http://www.statmodel.com/usersguide/chap5/ex5.2.dat")
    > ##D names(Data) <- c("u1","u2","u3","u4","u5","u6")
    > ##D Data <- as.data.frame(lapply(Data, ordered))
    > ##D
    > ##D # Lavaan model:
    > ##D model <- ' f1 =~ u1 + u2 + u3; f2 =~ u4 + u5 + u6 '
    > ##D
    > ##D # Run Lavaan:
    > ##D fit <- lavaan::cfa(model, data=Data)
    > ##D
    > ##D # Plot path diagram:
    > ##D semPaths(fit,intercepts=FALSE)
    > ## End(Not run)
    >
    > ## Mplus
    >
    > # Same model, now using mplus output:
    > outfile <- tempfile(fileext=".out")
    > download.file("http://www.statmodel.com/usersguide/chap5/ex5.2.out",outfile)
    trying URL 'http://www.statmodel.com/usersguide/chap5/ex5.2.out'
    Warning in download.file("http://www.statmodel.com/usersguide/chap5/ex5.2.out", :
     unable to connect to 'www.statmodel.com' on port 80.
    Error in download.file("http://www.statmodel.com/usersguide/chap5/ex5.2.out", :
     cannot open URL 'http://www.statmodel.com/usersguide/chap5/ex5.2.out'
    Execution halted
Flavor: r-release-linux-x86_64