Running ‘testthat.R’ [15s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(CompareCausalNetworks)
  > 
  > test_check("CompareCausalNetworks")
  
  Method: arges 
  1. Error: Checks output type for arges (@test_getParents_defaults_all_methods.R#24) 
  The package 'pcalg' is needed for arges to 
  work. Please install it.
  1: expect_is(Ahat <- getParents(X, environment, interventions, method = method, alpha = 0.1, 
         mode = mode, sparse = TRUE), "Matrix") at testthat/test_getParents_defaults_all_methods.R:24
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: getParents(X, environment, interventions, method = method, alpha = 0.1, mode = mode, 
         sparse = TRUE)
  5: checkDependencies(method)
  6: missingDependenciesMessage("pcalg", method)
  7: stop(paste("The package '", package, "' is needed for ", method, " to \nwork. Please install it.", 
         sep = ""), call. = FALSE)
  
  
  Method: backShift 
  Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
    there is no package called 'igraph'
  Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
    there is no package called 'igraph'
  [1] "\n"
    1 2 3
  1 0 0 0
  2 0 0 0
  3 0 0 0
  Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
    there is no package called 'igraph'
  
  Method: bivariateANM 
  [1] "\n"
    1 2 3
  1 0 0 0
  2 0 0 0
  3 0 0 0
  
  Method: bivariateCAM 
  [1] "\n"
    1 2 3
  1 0 0 0
  2 1 0 0
  3 1 1 0
  
  Method: CAM 
  [1] "\n"
    1 2 3
  1 0 1 1
  2 0 0 0
  3 0 1 0
  
  Method: fci 
  2. Error: Checks output type for fci (@test_getParents_defaults_all_methods.R#24) 
  The package 'pcalg' is needed for fci to 
  work. Please install it.
  1: expect_is(Ahat <- getParents(X, environment, interventions, method = method, alpha = 0.1, 
         mode = mode, sparse = TRUE), "Matrix") at testthat/test_getParents_defaults_all_methods.R:24
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: getParents(X, environment, interventions, method = method, alpha = 0.1, mode = mode, 
         sparse = TRUE)
  5: checkDependencies(method)
  6: missingDependenciesMessage("pcalg", method)
  7: stop(paste("The package '", package, "' is needed for ", method, " to \nwork. Please install it.", 
         sep = ""), call. = FALSE)
  
  
  Method: fciplus 
  3. Error: Checks output type for fciplus (@test_getParents_defaults_all_methods.R#24) 
  The package 'pcalg' is needed for fciplus to 
  work. Please install it.
  1: expect_is(Ahat <- getParents(X, environment, interventions, method = method, alpha = 0.1, 
         mode = mode, sparse = TRUE), "Matrix") at testthat/test_getParents_defaults_all_methods.R:24
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: getParents(X, environment, interventions, method = method, alpha = 0.1, mode = mode, 
         sparse = TRUE)
  5: checkDependencies(method)
  6: missingDependenciesMessage("pcalg", method)
  7: stop(paste("The package '", package, "' is needed for ", method, " to \nwork. Please install it.", 
         sep = ""), call. = FALSE)
  
  
  Method: ges 
  4. Error: Checks output type for ges (@test_getParents_defaults_all_methods.R#24) 
  The package 'pcalg' is needed for ges to 
  work. Please install it.
  1: expect_is(Ahat <- getParents(X, environment, interventions, method = method, alpha = 0.1, 
         mode = mode, sparse = TRUE), "Matrix") at testthat/test_getParents_defaults_all_methods.R:24
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: getParents(X, environment, interventions, method = method, alpha = 0.1, mode = mode, 
         sparse = TRUE)
  5: checkDependencies(method)
  6: missingDependenciesMessage("pcalg", method)
  7: stop(paste("The package '", package, "' is needed for ", method, " to \nwork. Please install it.", 
         sep = ""), call. = FALSE)
  
  
  Method: gies 
  5. Error: Checks output type for gies (@test_getParents_defaults_all_methods.R#24) 
  The package 'pcalg' is needed for gies to 
  work. Please install it.
  1: expect_is(Ahat <- getParents(X, environment, interventions, method = method, alpha = 0.1, 
         mode = mode, sparse = TRUE), "Matrix") at testthat/test_getParents_defaults_all_methods.R:24
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: getParents(X, environment, interventions, method = method, alpha = 0.1, mode = mode, 
         sparse = TRUE)
  5: checkDependencies(method)
  6: missingDependenciesMessage("pcalg", method)
  7: stop(paste("The package '", package, "' is needed for ", method, " to \nwork. Please install it.", 
         sep = ""), call. = FALSE)
  
  
  Method: hiddenICP 
  [1] "\n"
    1 2 3
  1 0 0 0
  2 0 0 0
  3 0 0 0
  
  Method: ICP 
  [1] "\n"
    1 2 3
  1 0 0 0
  2 0 0 0
  3 0 0 0
  
  Method: LINGAM 
  6. Error: Checks output type for LINGAM (@test_getParents_defaults_all_methods.R#24) 
  The package 'pcalg' is needed for LINGAM to 
  work. Please install it.
  1: expect_is(Ahat <- getParents(X, environment, interventions, method = method, alpha = 0.1, 
         mode = mode, sparse = TRUE), "Matrix") at testthat/test_getParents_defaults_all_methods.R:24
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: getParents(X, environment, interventions, method = method, alpha = 0.1, mode = mode, 
         sparse = TRUE)
  5: checkDependencies(method)
  6: missingDependenciesMessage("pcalg", method)
  7: stop(paste("The package '", package, "' is needed for ", method, " to \nwork. Please install it.", 
         sep = ""), call. = FALSE)
  
  
  Method: mmhc 
  [1] "\n"
    V1 V2 V3
  1  0  1  1
  2  0  0  1
  3  0  0  0
  
  Method: rankArges 
  7. Error: Checks output type for rankArges (@test_getParents_defaults_all_methods.R#24) 
  The package 'pcalg' is needed for rankArges to 
  work. Please install it.
  1: expect_is(Ahat <- getParents(X, environment, interventions, method = method, alpha = 0.1, 
         mode = mode, sparse = TRUE), "Matrix") at testthat/test_getParents_defaults_all_methods.R:24
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: getParents(X, environment, interventions, method = method, alpha = 0.1, mode = mode, 
         sparse = TRUE)
  5: checkDependencies(method)
  6: missingDependenciesMessage("pcalg", method)
  7: stop(paste("The package '", package, "' is needed for ", method, " to \nwork. Please install it.", 
         sep = ""), call. = FALSE)
  
  
  Method: rankFci 
  8. Error: Checks output type for rankFci (@test_getParents_defaults_all_methods.R#24) 
  The package 'pcalg' is needed for rankFci to 
  work. Please install it.
  1: expect_is(Ahat <- getParents(X, environment, interventions, method = method, alpha = 0.1, 
         mode = mode, sparse = TRUE), "Matrix") at testthat/test_getParents_defaults_all_methods.R:24
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: getParents(X, environment, interventions, method = method, alpha = 0.1, mode = mode, 
         sparse = TRUE)
  5: checkDependencies(method)
  6: missingDependenciesMessage("pcalg", method)
  7: stop(paste("The package '", package, "' is needed for ", method, " to \nwork. Please install it.", 
         sep = ""), call. = FALSE)
  
  
  Method: rankGes 
  9. Error: Checks output type for rankGes (@test_getParents_defaults_all_methods.R#24) 
  The package 'pcalg' is needed for rankGes to 
  work. Please install it.
  1: expect_is(Ahat <- getParents(X, environment, interventions, method = method, alpha = 0.1, 
         mode = mode, sparse = TRUE), "Matrix") at testthat/test_getParents_defaults_all_methods.R:24
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: getParents(X, environment, interventions, method = method, alpha = 0.1, mode = mode, 
         sparse = TRUE)
  5: checkDependencies(method)
  6: missingDependenciesMessage("pcalg", method)
  7: stop(paste("The package '", package, "' is needed for ", method, " to \nwork. Please install it.", 
         sep = ""), call. = FALSE)
  
  
  Method: rankGies 
  10. Error: Checks output type for rankGies (@test_getParents_defaults_all_methods.R#24) 
  The package 'pcalg' is needed for rankGies to 
  work. Please install it.
  1: expect_is(Ahat <- getParents(X, environment, interventions, method = method, alpha = 0.1, 
         mode = mode, sparse = TRUE), "Matrix") at testthat/test_getParents_defaults_all_methods.R:24
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: getParents(X, environment, interventions, method = method, alpha = 0.1, mode = mode, 
         sparse = TRUE)
  5: checkDependencies(method)
  6: missingDependenciesMessage("pcalg", method)
  7: stop(paste("The package '", package, "' is needed for ", method, " to \nwork. Please install it.", 
         sep = ""), call. = FALSE)
  
  
  Method: rankPc 
  11. Error: Checks output type for rankPc (@test_getParents_defaults_all_methods.R#24) 
  The package 'pcalg' is needed for rankPc to 
  work. Please install it.
  1: expect_is(Ahat <- getParents(X, environment, interventions, method = method, alpha = 0.1, 
         mode = mode, sparse = TRUE), "Matrix") at testthat/test_getParents_defaults_all_methods.R:24
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: getParents(X, environment, interventions, method = method, alpha = 0.1, mode = mode, 
         sparse = TRUE)
  5: checkDependencies(method)
  6: missingDependenciesMessage("pcalg", method)
  7: stop(paste("The package '", package, "' is needed for ", method, " to \nwork. Please install it.", 
         sep = ""), call. = FALSE)
  
  
  Method: rfci 
  12. Error: Checks output type for rfci (@test_getParents_defaults_all_methods.R#24) 
  The package 'pcalg' is needed for rfci to 
  work. Please install it.
  1: expect_is(Ahat <- getParents(X, environment, interventions, method = method, alpha = 0.1, 
         mode = mode, sparse = TRUE), "Matrix") at testthat/test_getParents_defaults_all_methods.R:24
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: getParents(X, environment, interventions, method = method, alpha = 0.1, mode = mode, 
         sparse = TRUE)
  5: checkDependencies(method)
  6: missingDependenciesMessage("pcalg", method)
  7: stop(paste("The package '", package, "' is needed for ", method, " to \nwork. Please install it.", 
         sep = ""), call. = FALSE)
  
  
  Method: pc 
  13. Error: Checks output type for pc (@test_getParents_defaults_all_methods.R#24) 
  The package 'pcalg' is needed for pc to 
  work. Please install it.
  1: expect_is(Ahat <- getParents(X, environment, interventions, method = method, alpha = 0.1, 
         mode = mode, sparse = TRUE), "Matrix") at testthat/test_getParents_defaults_all_methods.R:24
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: getParents(X, environment, interventions, method = method, alpha = 0.1, mode = mode, 
         sparse = TRUE)
  5: checkDependencies(method)
  6: missingDependenciesMessage("pcalg", method)
  7: stop(paste("The package '", package, "' is needed for ", method, " to \nwork. Please install it.", 
         sep = ""), call. = FALSE)
  
  
  Method: regression 
  [1] "\n"
    1 2 3
  1 0 1 1
  2 1 0 1
  3 1 1 0
  testthat results ================================================================
  OK: 27 SKIPPED: 0 FAILED: 13
  1. Error: Checks output type for arges (@test_getParents_defaults_all_methods.R#24) 
  2. Error: Checks output type for fci (@test_getParents_defaults_all_methods.R#24) 
  3. Error: Checks output type for fciplus (@test_getParents_defaults_all_methods.R#24) 
  4. Error: Checks output type for ges (@test_getParents_defaults_all_methods.R#24) 
  5. Error: Checks output type for gies (@test_getParents_defaults_all_methods.R#24) 
  6. Error: Checks output type for LINGAM (@test_getParents_defaults_all_methods.R#24) 
  7. Error: Checks output type for rankArges (@test_getParents_defaults_all_methods.R#24) 
  8. Error: Checks output type for rankFci (@test_getParents_defaults_all_methods.R#24) 
  9. Error: Checks output type for rankGes (@test_getParents_defaults_all_methods.R#24) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted