CRAN Package Check Results for Package matrixpls

Last updated on 2014-07-23 13:47:52.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.3.0 2.76 38.25 41.02 OK
r-devel-linux-x86_64-debian-gcc 0.3.0 2.68 38.68 41.36 OK
r-devel-linux-x86_64-fedora-clang 0.3.0 91.35 OK
r-devel-linux-x86_64-fedora-gcc 0.3.0 85.54 OK
r-devel-osx-x86_64-clang 0.3.0 72.99 OK
r-devel-windows-ix86+x86_64 0.3.0 7.00 61.00 68.00 OK
r-patched-linux-x86_64 0.3.0 2.72 38.01 40.73 OK
r-patched-solaris-sparc 0.3.0 451.30 OK
r-patched-solaris-x86 0.3.0 104.10 OK
r-release-linux-ix86 0.3.0 3.51 49.05 52.56 OK
r-release-linux-x86_64 0.3.0 2.99 39.06 42.05 OK
r-release-osx-x86_64-mavericks 0.3.0 ERROR
r-release-osx-x86_64-snowleopard 0.3.0 OK
r-release-windows-ix86+x86_64 0.3.0 8.00 61.00 69.00 OK
r-oldrel-windows-ix86+x86_64 0.3.0 7.00 64.00 71.00 OK

Check Details

Version: 0.3.0
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: ‘simsem’
Flavor: r-release-osx-x86_64-mavericks

Version: 0.3.0
Check: R code for possible problems
Result: NOTE
    matrixpls.sim: no visible binding for global variable ‘sim’
    matrixpls.sim: no visible global function definition for ‘lavaan’
    matrixpls.sim: no visible global function definition for ‘model.lavaan’
Flavor: r-release-osx-x86_64-mavericks

Version: 0.3.0
Check: Rd cross-references
Result: NOTE
    Package unavailable to check Rd xrefs: ‘simsem’
Flavor: r-release-osx-x86_64-mavericks

Version: 0.3.0
Check: examples
Result: ERROR
    Running examples in ‘matrixpls-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: matrixpls.sim
    > ### Title: Monte Carlo simulations with matrixpls
    > ### Aliases: matrixpls.sim
    >
    > ### ** Examples
    >
    > #
    > # Runs an example from the SimSem website
    > #
    > # https://github.com/simsem/simsem/wiki/Example-2:-Getting-Started-%28lavaan-input%29
    > #
    >
    > if(require(simsem)){
    +
    + popModel <- "
    + f1 =~ 1*y1 + 0.6*y2 + 0.7*y3
    + f2 =~ 1*y4 + 1.1*y5 + 0.9*y6
    + f3 =~ 1*y7 + 1.2*y8 + 1.1*y9
    + f1 ~~ 0.8*f1
    + f2 ~~ 0.9*f2
    + f3 ~~ 0.4*f3
    + f1 ~~ 0.4*f2
    + f1 ~~ 0.2*f3
    + f2 ~~ 0.3*f3
    + y1 ~~ 0.5*y1
    + y2 ~~ 1.1*y2
    + y3 ~~ 0.8*y3
    + y4 ~~ 0.4*y4
    + y5 ~~ 0.4*y5
    + y6 ~~ 0.8*y6
    + y7 ~~ 0.8*y7
    + y8 ~~ 0.5*y8
    + y9 ~~ 0.6*y9
    + "
    +
    + analyzeModel <- "
    + f1 =~ y1 + y2 + y3
    + f2 =~ y4 + y5 + y6
    + f3 =~ y7 + y8 + y9
    + "
    +
    + # Only run 10 replications with 50 bootstrap replications each so that the
    + #example runs faster
    +
    + Output <- matrixpls.sim(10, analyzeModel, n=200, generate=popModel, boot.R=50,
    + multicore = FALSE, stopOnError = TRUE)
    + getCutoff(Output, 0.05)
    + plotCutoff(Output, 0.05)
    + summary(Output)
    +
    +
    + } else{
    + print("This example requires the simsem package")
    + }
    Loading required package: simsem
    Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
     there is no package called ‘simsem’
    [1] "This example requires the simsem package"
    >
    > #
    > # Runs the second model from
    > #
    > # Aguirre-Urreta, M., & Marakas, G. (2013). Partial Least Squares and Models with Formatively
    > # Specified Endogenous Constructs: A Cautionary Note. Information Systems Research.
    > # doi:10.1287/isre.2013.0493
    >
    > if(require(simsem)){
    +
    + library(MASS)
    +
    + X <- diag(15)
    + X[upper.tri(X, diag=TRUE)] <- c(
    + 1.000,
    + 0.640, 1.000,
    + 0.640, 0.640, 1.000,
    + 0.640, 0.640, 0.640, 1.000,
    + 0.096, 0.096, 0.096, 0.096, 1.000,
    + 0.096, 0.096, 0.096, 0.096, 0.640, 1.000,
    + 0.096, 0.096, 0.096, 0.096, 0.640, 0.640, 1.000,
    + 0.096, 0.096, 0.096, 0.096, 0.640, 0.640, 0.640, 1.000,
    + 0.115, 0.115, 0.115, 0.115, 0.192, 0.192, 0.192, 0.192, 1.000,
    + 0.115, 0.115, 0.115, 0.115, 0.192, 0.192, 0.192, 0.192, 0.640, 1.000,
    + 0.115, 0.115, 0.115, 0.115, 0.192, 0.192, 0.192, 0.192, 0.640, 0.640,
    + 1.000,
    + 0.115, 0.115, 0.115, 0.115, 0.192, 0.192, 0.192, 0.192, 0.640, 0.640,
    + 0.640, 1.000,
    + 0.000, 0.000, 0.000, 0.000, 0.271, 0.271, 0.271, 0.271, 0.325, 0.325,
    + 0.325, 0.325, 1.000,
    + 0.000, 0.000, 0.000, 0.000, 0.271, 0.271, 0.271, 0.271, 0.325, 0.325,
    + 0.325, 0.325, 0.300, 1.000,
    + 0.000, 0.000, 0.000, 0.000, 0.271, 0.271, 0.271, 0.271, 0.325, 0.325,
    + 0.325, 0.325, 0.300, 0.300, 1.000
    + )
    + X <- X + t(X) - diag(diag(X))
    +
    + colnames(X) <- rownames(X) <- c(paste("Y",1:12,sep=""),paste("X",1:3,sep=""))
    +
    + # Print the population covariance matrix X to see that it is correct
    +
    + X
    +
    + # The estimated model in Lavaan syntax
    +
    + analyzeModel <- "
    + ksi =~ Y1 + Y2 + Y3 + Y4
    + eta1 <~ X1 + X2 + X3
    + eta2 =~ Y5 + Y6 + Y7 + Y8
    + eta3 =~ Y9 + Y10 + Y11 + Y12
    +
    + eta1 ~ ksi
    + eta2 ~ eta1
    + eta3 ~ eta1
    + "
    +
    + # Only run 100 replications with 2 bootstrap replications each so that the
    + # example runs faster. Generate the data outside simsem because simsem
    + # does not support drawing samples from population matrix
    +
    + dataSets <- lapply(1:100, function(x){
    + mvrnorm(300, # Sample size
    + rep(0,15), # Means
    + X) # Population covarancematrix
    + })
    +
    + Output <- matrixpls.sim(model = analyzeModel, rawData = dataSets, boot.R=2,
    + multicore = FALSE, stopOnError = TRUE)
    +
    + summary(Output)
    +
    +
    + } else{
    + print("This example requires the simsem package")
    + }
    Loading required package: simsem
    Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
     there is no package called ‘simsem’
    [1] "This example requires the simsem package"
    >
    > # Simulates the direct effects model from
    > #
    > # Dijkstra, T. K., & Schermelleh-Engel, K. (2013). Consistent Partial Least Squares for Nonlinear
    > # Structural Equation Models. Psychometrika, 1–20. doi:10.1007/s11336-013-9370-0
    > #
    > # using PLSc, disattenuated summed scales, and disattenuated factor scores
    > #
    >
    > ####################################################################################################
    > #
    > # Simulation parameters
    > #
    > ####################################################################################################
    >
    > SAMPLE <- 100
    > REPLICATIONS <- 50
    > MULTICORE <- FALSE
    >
    > MODEL <- "
    + Eta1 =~ .8*y1 + .8*y2 + .8*y3
    + Eta2 =~ .8*y4 + .8*y5 + .8*y6
    + Eta3 =~ .8*y7 + .8*y8 + .8*y9
    +
    + y1~~.36*y1
    + y2~~.51*y2
    + y3~~.64*y3
    + y4~~.36*y4
    + y5~~.51*y5
    + y6~~.64*y6
    + y7~~.36*y7
    + y8~~.51*y8
    + y9~~.64*y9
    +
    + Eta1~~1*Eta1
    + Eta2~~1*Eta2
    + Eta2~~-.3*Eta1
    +
    + Eta3~.5*Eta1 + -.3*Eta2
    + Eta3~~.57*Eta3 # error tem is calculated as 1-(.5*(.5 + -.3*-.3) + -.3*(-.3 + -.3*.5))
    + "
    >
    >
    > ####################################################################################################
    > #
    > # Run simulations
    > #
    > ####################################################################################################
    >
    > library(matrixpls)
    >
    > sim.PLSf1 <- matrixpls.sim(nRep = REPLICATIONS, model = MODEL, n = SAMPLE, #General setup
    + parameterEstimator = params.plsc,
    + fm = "minres", # Setup disattenuation with minres factor analysis
    + outerEstimator = outer.factor, # Use factor scores as proxies.
    + innerEstimator = NULL, # Factor score proxies do not use inner estimation
    + boot.R = FALSE, # We are not interested in bootstrap
    + multicore = MULTICORE, fitIndices = NULL, stopOnError = TRUE)
    Loading required namespace: simsem
    Failed with error: ‘there is no package called ‘simsem’’
    Error in matrixpls.sim(nRep = REPLICATIONS, model = MODEL, n = SAMPLE, :
     matrixpls.sim requires the simsem package
    Execution halted
Flavor: r-release-osx-x86_64-mavericks