Running ‘testthat.R’ [20s/32s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if(require(testthat)){
  +   library(CompareCausalNetworks)
  +   
  +   test_check("CompareCausalNetworks")
  + }
  Loading required package: testthat
  
  Method: arges 
  [1] "\n"
    1 2 3
  1 0 0 0
  2 0 0 0
  3 0 0 0
  
  Method: backShift 
  [1] "\n"
    1 2 3
  1 0 1 1
  2 1 0 1
  3 1 1 0
  
  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] "The required package for  CAM  is not installed."
  
  Method: fci 
  [1] "\n"
    1 2 3
  1 0 0 0
  2 0 0 0
  3 0 0 0
  
  Method: fciplus 
  [1] "\n"
    1 2 3
  1 0 0 0
  2 0 0 0
  3 0 0 0
  
  Method: ges 
  [1] "\n"
    1 2 3
  1 0 0 0
  2 0 0 0
  3 0 0 0
  
  Method: gies 
  ── 1. Error: Checks output type for gies (@test_getParents_defaults_all_methods.
  argument is of length zero
  Backtrace:
    1. testthat::expect_is(...)
    4. CompareCausalNetworks::getParents(...)
    5. CompareCausalNetworks:::runGIES(...)
    6. methods::new(...)
    8. methods::initialize(value, ...)
    9. methods::validObject(.Object)
   13. methods::as(object, superClass)
   14. methods:::asMethod(object)
   15. methods::new("DataScore")
   17. methods::initialize(value, ...)
   18. methods::validObject(.Object)
   21. pcalg:::validityMethod(object)
  
  
  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 
  [1] "\n"
    1 2 3
  1 0 0 0
  2 0 0 0
  3 0 1 0
  
  Method: mmhc 
  [1] "\n"
    V1 V2 V3
  1  0  1  1
  2  0  0  1
  3  0  0  0
  
  Method: rankArges 
  [1] "\n"
    1 2 3
  1 0 0 0
  2 0 0 0
  3 0 0 0
  
  Method: rankFci 
  [1] "\n"
    1 2 3
  1 0 0 0
  2 0 0 0
  3 0 0 0
  
  Method: rankGes 
  [1] "\n"
    1 2 3
  1 0 0 0
  2 0 0 0
  3 0 0 0
  
  Method: rankGies 
  ── 2. Error: Checks output type for rankGies (@test_getParents_defaults_all_meth
  argument is of length zero
  Backtrace:
    1. testthat::expect_is(...)
    4. CompareCausalNetworks::getParents(...)
    5. CompareCausalNetworks:::runNonparanormalGIES(...)
    6. CompareCausalNetworks:::runGIES(...)
    7. methods::new(...)
    9. methods::initialize(value, ...)
   10. methods::validObject(.Object)
   14. methods::as(object, superClass)
   15. methods:::asMethod(object)
   16. methods::new("DataScore")
   18. methods::initialize(value, ...)
   19. methods::validObject(.Object)
   22. pcalg:::validityMethod(object)
  
  
  Method: rankPc 
  [1] "\n"
    1 2 3
  1 0 0 0
  2 0 0 0
  3 0 0 0
  
  Method: rfci 
  [1] "\n"
    1 2 3
  1 0 0 0
  2 0 0 0
  3 0 0 0
  
  Method: pc 
  [1] "\n"
    1 2 3
  1 0 0 0
  2 0 0 0
  3 0 0 0
  
  Method: regression 
  [1] "\n"
    1 2 3
  1 0 1 1
  2 1 0 1
  3 1 1 0
  
  Method: RESIT 
  [1] "\n"
    1 2 3
  1 0 0 0
  2 1 0 1
  3 1 0 0
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 57 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 2 ]
  1. Error: Checks output type for gies (@test_getParents_defaults_all_methods.R#23) 
  2. Error: Checks output type for rankGies (@test_getParents_defaults_all_methods.R#23) 
  
  Error: testthat unit tests failed
  Execution halted