Running 'testthat.R' [193s/74s]
Running R code in 'testthat.R' had CPU time 2.6 times elapsed time
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(antaresProcessing)
  Loading required package: antaresRead
  
  Attaching package: 'antaresProcessing'
  
  The following object is masked from 'package:testthat':
  
      compare
  
  > 
  > test_check("antaresProcessing")
  -- 1. Error: h5 : processing correctBalance when mcYear is set to NULL (@test-co
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-correctBalance.R:72
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 2. Error: h5 : processing correctBalance when mcYear is set to 1 (@test-corre
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-correctBalance.R:108
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 3. Error: h5 : processing correctBalance when mcYear is set to 1 for weekly o
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-correctBalance.R:146
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 4. Error: h5 : processing correctBalance when mcYear is set to 1 for monthly 
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-correctBalance.R:227
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 5. Error: h5 : processing correctBalance with addProcessingH5 (@test-correctB
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-correctBalance.R:273
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  Failed with error:  'there is no package called 'rhdf5''
  -- 6. Error: h5 : processing, write results (@test-h5_processing.R#4)  ---------
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:4
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 7. Error: h5 : processing, write results mcAll (@test-h5_processing.R#30)  --
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:30
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 8. Error: h5 : all data (@test-h5_processing.R#56)  -------------------------
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:56
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 9. Error: h5 : processing calc by user (@test-h5_processing.R#72)  ----------
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:72
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 10. Error: h5 : processing calc by straitements (@test-h5_processing.R#86)  -
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:86
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 11. Error: h5 : processing calc links clusters discticcts (@test-h5_processin
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:102
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 12. Error: h5 : processing Out_addNetLoad (@test-h5_processing.R#120)  ------
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:120
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 13. Error: h5 : processing Out_addDownwardMargin (@test-h5_processing.R#131) 
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:131
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 14. Error: h5 : processing Out_addUpwardMargin (@test-h5_processing.R#144)  -
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:144
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 15. Error: h5 : processing Out_addExportAndImport (@test-h5_processing.R#157)
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:157
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 16. Error: h5 : processing Out_addLoadFactorLink (@test-h5_processing.R#170) 
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:170
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 17. Error: h5 : processing Out_externalDependency (@test-h5_processing.R#180)
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:180
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 18. Error: h5 : processing Out_loadFactor (@test-h5_processing.R#200)  ------
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:200
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 19. Error: h5 : processing Out_modulation (@test-h5_processing.R#212)  ------
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:212
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 20. Error: h5 : processing netLoadRamp (@test-h5_processing.R#225)  ---------
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:225
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 21. Error: h5 : processing surplus (@test-h5_processing.R#242)  -------------
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:242
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 22. Error: h5 : Out_surplusClusters (@test-h5_processing.R#265)  ------------
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:265
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 23. Error: No h5 opts (@test-h5_processing.R#281)  --------------------------
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:281
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 24. Error: Write boolean (@test-h5_processing.R#290)  -----------------------
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:290
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  -- 25. Error: Write character (@test-h5_processing.R#297)  ---------------------
  object 'h5file' not found
  1: .skipFunctionH5(h5file) at testthat/test-h5_processing.R:297
  2: testthat::skip_if(is.null(h5file), "h5file is null")
  3: isTRUE(condition)
  
  Failed with error:  'there is no package called 'rhdf5''
  == testthat results  ===========================================================
  OK: 381 SKIPPED: 0 FAILED: 25
  1. Error: h5 : processing correctBalance when mcYear is set to NULL (@test-correctBalance.R#72) 
  2. Error: h5 : processing correctBalance when mcYear is set to 1 (@test-correctBalance.R#108) 
  3. Error: h5 : processing correctBalance when mcYear is set to 1 for weekly or monthly data (@test-correctBalance.R#146) 
  4. Error: h5 : processing correctBalance when mcYear is set to 1 for monthly data on districts (@test-correctBalance.R#227) 
  5. Error: h5 : processing correctBalance with addProcessingH5 (@test-correctBalance.R#273) 
  6. Error: h5 : processing, write results (@test-h5_processing.R#4) 
  7. Error: h5 : processing, write results mcAll (@test-h5_processing.R#30) 
  8. Error: h5 : all data (@test-h5_processing.R#56) 
  9. Error: h5 : processing calc by user (@test-h5_processing.R#72) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted