Running ‘testthat.R’ [4s/5s]
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] "The required package for  arges  is not installed."
  
  Method: backShift 
  [1] "The required package for  backShift  is not installed."
  
  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] "The required package for  fci  is not installed."
  
  Method: fciplus 
  [1] "The required package for  fciplus  is not installed."
  
  Method: ges 
  [1] "The required package for  ges  is not installed."
  
  Method: gies 
  [1] "The required package for  gies  is not installed."
  
  Method: hiddenICP 
  [1] "The required package for  hiddenICP  is not installed."
  
  Method: ICP 
  [1] "The required package for  ICP  is not installed."
  
  Method: LINGAM 
  [1] "The required package for  LINGAM  is not installed."
  
  Method: mmhc 
  [1] "\n"
    V1 V2 V3
  1  0  1  1
  2  0  0  1
  3  0  0  0
  
  Method: rankArges 
  [1] "The required package for  rankArges  is not installed."
  
  Method: rankFci 
  [1] "The required package for  rankFci  is not installed."
  
  Method: rankGes 
  [1] "The required package for  rankGes  is not installed."
  
  Method: rankGies 
  [1] "The required package for  rankGies  is not installed."
  
  Method: rankPc 
  [1] "The required package for  rankPc  is not installed."
  
  Method: rfci 
  [1] "The required package for  rfci  is not installed."
  
  Method: pc 
  [1] "The required package for  pc  is not installed."
  
  Method: regression 
  [1] "The required package for  regression  is not installed."
  
  Method: RESIT 
  [ FAIL 1 | WARN 0 | SKIP 18 | PASS 9 ]
  
  ══ Skipped tests (18) ══════════════════════════════════════════════════════════
  • empty test (18): 'test_getParents_defaults_all_methods.R:20:3',
    'test_getParents_defaults_all_methods.R:20:3',
    'test_getParents_defaults_all_methods.R:20:3',
    'test_getParents_defaults_all_methods.R:20:3',
    'test_getParents_defaults_all_methods.R:20:3',
    'test_getParents_defaults_all_methods.R:20:3',
    'test_getParents_defaults_all_methods.R:20:3',
    'test_getParents_defaults_all_methods.R:20:3',
    'test_getParents_defaults_all_methods.R:20:3',
    'test_getParents_defaults_all_methods.R:20:3',
    'test_getParents_defaults_all_methods.R:20:3',
    'test_getParents_defaults_all_methods.R:20:3',
    'test_getParents_defaults_all_methods.R:20:3',
    'test_getParents_defaults_all_methods.R:20:3',
    'test_getParents_defaults_all_methods.R:20:3',
    'test_getParents_defaults_all_methods.R:20:3',
    'test_getParents_defaults_all_methods.R:20:3',
    'test_getParents_defaults_all_methods.R:20:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_getParents_defaults_all_methods.R:23:7'): Checks output type for RESIT ──
  Error: The package 'glmnet' is needed for RESIT to 
  work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_getParents_defaults_all_methods.R:23:7
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─CompareCausalNetworks::getParents(...)
   5.   └─CompareCausalNetworks:::checkDependencies(method)
   6.     └─CompareCausalNetworks (local) fct("glmnet", method)
  
  [ FAIL 1 | WARN 0 | SKIP 18 | PASS 9 ]
  Error: Test failures
  Execution halted